469,271 Members | 1,014 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Line width when printing

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
Nov 23 '05 #1
1 2267
"Rhino" <no***********************@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
Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

179 posts views Thread by SoloCDM | last post: by
22 posts views Thread by Kim Scarborough | last post: by
7 posts views Thread by jamait | last post: by
1 post views Thread by Steve Richter | last post: by
4 posts views Thread by Jack Russell | last post: by
5 posts views Thread by HMS Surprise | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.