472,133 Members | 1,183 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,133 software developers and data experts.

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 2336
"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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.