473,394 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 2404
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

179
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
22
by: Kim Scarborough | last post by:
Say I wanted to put a couple lines of asterisks between paragraphs, and have it stretch the spaces so that it spanned 100% of the text-width, like this: * * * * * ...
7
by: jamait | last post by:
Hi all, I m trying to read in a text file into a datatable... Not sure on how to split up the information though, regex or substrings...? sample: Col1 Col2 ...
1
by: Steve Richter | last post by:
here is the start of my .aspx page: <body> <form id="Form1" method="post" runat="server"> <TABLE id="Table2" runat="server" width="100%" border="0"> I understand the width=100% attribute to...
4
by: Jack Russell | last post by:
Any bright ideas on how I can calculate how wide a piece of text will be when printing. When writing text to the screen in graphics mode I put it in a invisible text box to get its height and...
5
by: HMS Surprise | last post by:
I want to print a count down timer on the same line. I tried print '\r', timeLeft, which just appends to the same line. thanx,
1
by: plumba | last post by:
Hi all. I have a form which has a table and within the rows of the table are simple text input boxes. The ONLY problems with this is that when the form is posted (in text format) if the number of...
5
by: Summercool | last post by:
wow... i didn't know that, for <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:// www.w3.org/TR/html4/loose.dtd"> <span style="width: 100px; background:...
1
by: rh0dium | last post by:
Hi all, Perhaps it's not supposed to work like this but I thought if you supplied a width to pprint it would nicely format a list to the width. KEYS = pp = pprint.PrettyPrinter(indent=2)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.