I’m using a print stylesheet linked in the head right below the main stylesheet. When the user prints an article, the css code hides everything on the page except for the article (and it also changes margins and fonts and whatnot.)
Then, if you want to make it really easy for your guests, you can put a JavaScript link that will open the print window:
<a href="javascript:window.print()">Click to Print This Article</a>
Caveat: about the only thing it will save them is the split second it takes to click File > Print.
Thread Starter
falke
(@falke)
Thanks mate!
Where did you find this print stylesheet and how do you invoke it when a user wants to print a page?
regards/falke
There’s a tutorial on A List Apart about making it:
http://www.alistapart.com/articles/goingtoprint/
I seem to be directing people to A List Apart a lot, lately.