Monday, July 18, 2005
Styling for Print
We need a special stylesheet that can be used for the printing and this is fairly straightforward. All of the fixed elements are hidden. The logo block has its background removed and in its stead is a fine gray line to the right. Luckily, some browsers (Safari 2, Internet Explorer 6) have a preview mode so that we don’t need to print half a tree just for testing purposes.
The stylesheet is delivered (after all other external stylsheets) with this:
<link rel='stylesheet' type='text/css'
media='print' href='includes/print.css' />
