Previous Message
Next Message

AW: [css-d] CSS printing problem

Sent by Ines Robbers on 6 January 2003 15:03


Hi Jim,

Thanks for your reply!
The error occurs in many browsers.
I guess you're right with your hint that it has to do with page breaks.
The print.css itself is very straightforward:
The first div #haupt is positioned only via margins, the same goes for
the following divs.
The only problem might be that on the default stylesheet I use #links as
a container for #inhaltlinks which is the box I want to have printed
after the main content (#haupt).
So perhaps it has to do with the #links div?
Is it actually possible to set #links to display:none and then somehow
get #inhaltlinks out of there and display it?
I couldn't figure that out so far...

This is the print.css:

...
#haupt {margin: 0 5%; ...}
#links {margin: 0 5%; ...}
#inhaltlinks {margin: 0; ...}
...

Here the XHTML:

...
<div id="haupt">
Main content
</div>

<div id="links">
Other divs...
<div id="inhaltlinks">
Left content
</div>
...

I would be grateful for any further tip!!

Ines


PS: It seems to work fine at
http://www.alistapart.com/stories/goingtoprint/




 
* Hello Ines,
* 
* You don't say what browser you are using. Also, paper size 
* and printer margins will affect the position of the page 
* breaks. I print- previewed your page using Opera 5.12 (and A4 
* paper) and found that the display of the second div was 
* corrupt (but not as badly as 
* you found).
* 
* My experience of printing pages with nested-table designs 
* (using various browsers including IE6 and NS7) suggests that browsers 
* have difficulty in handling page breaks. I suspect they would 
* all have problems with table-less, CSS-positioned pages as well.
* 
* I applaud your use of print style sheets but I think you are 
* probably pushing current browsers beyond their limits. I 
* haven't analysed 
* your CSS. You may have to simplify your page structure a 
* little if printing them is important to your users.
* 
* Jim Wilkinson
* 
* Cardiff. Wales UK
* 
* 
* 
* ______________________________________________________________________
* css-discuss [EMAIL-REMOVED]] 
* http://www.css-* discuss.org/mailman/listinfo/css-d
* Supported 
* by evolt.org -- 
* http://www.evolt.org/help_support_evolt/
*
Previous Message
Next Message

Message thread: