This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > November 2005 > Line width when printing





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Line width when printing
Rhino

2005-11-13, 6:51 pm

I have a working knowledge of CSS but I've been away from it for a while so
I'd really appreciate it if someone could get me started with a problem I'm
having.

I have a wiki which displays just fine but when I print pages from it, the
lines get truncated on the right at a certain point. I want to make sure
that when people print wiki pages, none of the text is lost in the hard
copies.

Can anyone remind me of how this is best accomplished? I know I need to have
a media="print" in the <link rel="stylesheet"> tag and have the HREF point
to my print CSS file; after that, I'm not sure how best to prevent data
loss. Is it enough to add 'size: 8.5in 11in' to the BODY selector??

--
Rhino


Spartanicus

2005-11-13, 10:45 pm

"Rhino" <no.offline.contact.please@nospam.com> wrote:

>I have a wiki which displays just fine but when I print pages from it, the
>lines get truncated on the right at a certain point. I want to make sure
>that when people print wiki pages, none of the text is lost in the hard
>copies.
>
>Can anyone remind me of how this is best accomplished? I know I need to have
>a media="print" in the <link rel="stylesheet"> tag and have the HREF point
>to my print CSS file; after that, I'm not sure how best to prevent data
>loss. Is it enough to add 'size: 8.5in 11in' to the BODY selector??


In your markup: don't use tables for layout, avoid the use of <pre>.

Restrict your screen styles to the screen. In your print stylesheet
disable things like navbars and side panels if they contain superfluous
content, there should be only one "column" to print.

Printing should then be fine, adjust your browser's print margins if it
isn't.

--
Spartanicus
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews