WH> Printing Web pages is basically a non-starter. You have pretty much zero
WH> control over what the page will look like when printed, as it depends on all
WH> sorts of factors out of your control (the users computer, printer, browser,
WH> etc.).

Well, this is not overly true anymore.  Most users are using IE5.5+
and many are moving to Mozilla 1.0 or Netscape 6.x/7.x.  Opera 5+/6+
are also pretty common.  All these browsers support separate
CSS stylesheets specifically for printing.

Case-in-point, take a look at A List Apart:
http://www.alistapart.com/index.html


The page looks one way when you view it via the web browser.  Now do a
print preview.  Notice the difference?  It is because A List Apart has
the following in their html:

<link rel="stylesheet" type="text/css" media="print" href="/print.css" />

the media="print" is the key there.

Take a look at that stylesheet for reference as to what one might do
for setting margins and such.  CSS also provides page rules like page-break-before
and page-break-after for printing:

http://www.w3.org/TR/REC-CSS2/page.html#page-break-props
http://www.blooberry.com/indexdot/css/properties/print/pbbefore.htm
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/pagebreakbefore.asp


CSS is *much* more powerful than people realize.
http://www.meyerweb.com/eric/css/edge/


Jake


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to