Making Printer Friendly Pages
You need to know how to make printer friendly pages if your website has a large amount of text content that contains information worth reading. Because most visitors will print the pages and read them offline.
You can have a script that generates a printer friendly page or you can use Cascading Style Sheets(CSS) to accomplish this. If you have never used CSS, I suggest learning them. CSS makes designing a site very easy and make changes to the site very quick and painless.
These are some great links to learn CSS, or at least a quick primer!

Already Using CSS?
You may be wondering how to use CSS to create printer friendly pages – if you already have a style sheet for your pages. Take a look at the following example:
<link rel=”stylesheet”
type=”text/css”
media=”print” href=”print.css” />
Building the Style Sheet
When you build a print-friendly style sheet, you need to keep in mind a few rules.
- Change colors to black on white.
- Change the font to serif.
- Watch the font size.
- Underline all links.
- Remove non-essential images.
- Remove navigation.
- Remove some or most of the advertising.
- Remove all JavaScript, Flash, and animated images.
Change these rules into CSS:
Black on white with 12-point, serif fonts:
body { color : #000000; background : #ffffff; font-family : “Times New Roman”, Times, serif; font-size : 12pt; }
Underline links:
a { text-decoration : underline; color : #0000ff; }
I also like to make the links blue, to stand out on color printers.
Remove Non-Essential Images, Ads, Navigation, and Scripting.
The best way to do this is to put <div> elements around each section of your page. For example, you might have the following sections:
top, bottom, left, and right navigation ,internal advertising,content ,other elements.
Define each of them with a <div> element:
<div id=”navigation” name=”navigation”>
<div id=”advertising” name=”advertising”>
<div id=”content” name=”content”>
<div id=”other” name=”other”>
Then, in your style sheet, get rid of the ads, navigation, and other information:#navigation, #advertising, #other { display : none; }
The print.css style sheet would look like this:
body {
color : #000000;
background : #ffffff;
font-family : “Times New Roman”, Times, serif;
font-size : 12pt;
}
a {
text-decoration : underline;
color : #0000ff;
}
#navigation, #advertising, #other {
display : none;
}
Save print.css in the same directory as the file, include the <link rel=”stylesheet” type=”text/css” href=”print.css” media=”print” /> in the head of your document, and your page will print perfectly while displaying however you would like.
This article was provided by:
Tim Bowen, WebMaster
Tucsonweb Design

