Style Controlling Printing:
CSS can help you control how your web pages will print so that banner ads or other unwanted areas will not print with the page.
Style sheets can be "media" specific, or if stated, created for "print" or "screen".
Ex.
<link
rel="stylesheet" media="screen" type="text/css"
href="screen.css" />
or
<link
rel="stylesheet" media="print" type="text/css"
href="print.css" />
Tips:
1. Hide ads that don't need to be printed.
2. Remove background images and colors.
3. Control page breaking if you can
Removing Background
Color :
ex.
body
{background:blue url(fun.gif) no-repeat bottom left}
-Do all backgrounds as style and take this out of the body tag for the print
version of the style sheet.
Controlling
page breaking:
ex.
STYLE:
p{page-break-inside:avoid}
(avoids breaking)
h1, h2, h3, h4, h5, h6 {page-break-before:always}
(always breaks before)
ol, ul {page-break-after:always}
(always breaks after)