Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-17-2007, 11:57 AM   PM User | #1
durdledoor
New Coder

 
Join Date: Jul 2005
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
durdledoor is an unknown quantity at this point
min-height causes a printing problem

A .css definition of min-height on a page element which controls width and height is causing a problem when pages are printed.
#wrapper {
position: relative;
width: 770px;
margin: 0 auto;
text-align:left;
background: #fff;
overflow:hidden;
min-height: 875px;
}

The content does not flow over from one printed page to the next but seems to stay in one 'lump' and push down the rest of the content
Is there any way of remedying this in the print.css file I am creating?

Many thanks
durdledoor is offline   Reply With Quote
Old 10-17-2007, 01:43 PM   PM User | #2
timgolding
Senior Coder

 
timgolding's Avatar
 
Join Date: Aug 2006
Location: Southampton
Posts: 1,466
Thanks: 90
Thanked 110 Times in 109 Posts
timgolding is on a distinguished road
I found that keeping widths to below 640px seems to work for portrait A4 printing. Sometimes using css to seperate pages is helpful

Code:
div#page
{
	background-color:white;
	page-break-before:always;
}
Code:
<div id="page>
page content 

</div>
Any chance you can show an example of what the prints look like compared to the web page on screen
__________________
You can not say you know how to do something, until you can teach it to someone else.
timgolding is offline   Reply With Quote
Old 10-18-2007, 12:02 PM   PM User | #3
durdledoor
New Coder

 
Join Date: Jul 2005
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
durdledoor is an unknown quantity at this point
Thank you so much for taking the trouble to respond. In fact it was the background image which was causing all the trouble. I substituted this in the print.css with a 1pixel by 1 pixel image and all was well.
durdledoor is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:06 AM.


Advertisement
Log in to turn off these ads.