In the HEAD section of your page add:
<link rel="stylesheet" href="{path_to}/print.css" type="text/css" media="print">It is key that the media type is set to print. With this rule the browser will use this stylesheet when rendering a page for printing and not for your screen. When creating a print specific style sheet you probably want to hide some parts of your page that is not essential, such as navigation menus,the header and footer. Basically, anything that does not convey information realted to the page.
So go ahead and remove any sections that does not need to form part of the document when printed. Open the print.css file, if you have nor already opened it, and inside specify all the parts that you want to hide, leave only the article for printing
Example:
#navigation, #rightSideBar, #leftSideBar {display:none;}From your browsers file menu select: File > Print Preview to see the print stylesheet in action. For more see:
http://code.google.com/p/hartija/ [2]
Links:
[1] http://code.google.com/p/hartija/
[2] http://code.google.com/p/hartija/