HighDots Forums  

Printable format broken

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Printable format broken in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Arancaytar
 
Posts: n/a

Default Printable format broken - 06-06-2007 , 08:35 AM






This is my site: http://arancaytar.ermarian.net/

I am using this stylesheet to generate a printable version of the page
(using media="print"):

http://arancaytar.ermarian.net/sites...heme/print.css

But for some reason, Firefox will only print a single A4 page. Rather
than breaking the page once it is full, the entire content <div>
appears to stretch out of sight beyond the bottom margin of the page.

Curiously, the pagination works in IE7 - although that browser has
issues with the rest of the markup (such as wrapping <div>s that are
inside paragraph tags in <object>).

I am guessing that the error is in a stylesheet (if not in print.css,
perhaps in the other stylesheets on the page) - perhaps something to
do with "overflow"? But I can't figure out more than that...


Reply With Quote
  #2  
Old   
Jim Moe
 
Posts: n/a

Default Re: Printable format broken - 06-06-2007 , 03:19 PM






Arancaytar wrote:
Quote:
This is my site: http://arancaytar.ermarian.net/

I am using this stylesheet to generate a printable version of the page
(using media="print"):

ISTR that you must add this to your print CSS file to be sure all
browsers get it:

@media print {

/* the print.css */

}

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
  #3  
Old   
Arancaytar
 
Posts: n/a

Default Re: Printable format broken - 06-07-2007 , 01:08 AM



On Jun 6, 9:19 pm, Jim Moe <jmm-list.AXSPA... (AT) sohnen-moe (DOT) com> wrote:
Quote:
ISTR that you must add this to your print CSS file to be sure all
browsers get it:
The print.css file itself is used correctly by all browsers I tested
with (Firefox and Internet Explorer). It hides the sidebar and
navigation links, but shows the URL of hyperlinks behind the link
text. That doesn't seem to be the problem.

However, the content overflows over the edge of the first page without
starting a new page in Firefox. I've taken the time to make the markup
and CSS valid again, but the problem is still there...

--
Aran



Reply With Quote
  #4  
Old   
Arancaytar
 
Posts: n/a

Default Re: Printable format broken - 06-07-2007 , 04:36 AM



Okay, it seems to be caused by the "overflow:hidden" property (makes
sense in a way). I don't know why the author of the original template
put that in, but then they didn't appear to hold with W3C validation
either. It works both in the normal form and in print now.


--
Aran


Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.