Printing.
There's something I'd like to see more bloggers do: print stylesheets.
Lots of us use CSS to style our output. I also attach a print style-sheet to my blog, so when you print, you only get the appropriate content. Go ahead, take an archive page or the home page and do a print preview. I'll wait for you to come back.
...
Pretty cool, huh? It's pretty simple, actually. I do two major things with my print style-sheet: adjust the colors and backgrounds for best laser printing, and hide things that don't make any sense for printing. Then I attach the stylesheet with the following directive:
<link rel="stylesheet" type="text/css" media="print" href="http://dotnetguy.techieswithcats.com/style-print.css">
What you'll find in that stylesheet is basically a bunch of overrides for my styles. Backgrounds become transparent, text becomes black, and whole parts of the site get marked with "display: none;". It's very handy for printing out web content, and it would be nice if more sites used it. If you're already using CSS to style your site, it's pretty simple to get everything printing like you want without having to have a "printable version" link (which is a holdover from pre-CSS days).
I also uncovered a weird printing bug in Mozilla which makes it only print the first page of the web content. I haven't really figured out what triggers it, and I can't upgrade beyond 1.0.1 because that's our minimum supported browser for our web application. [The .NET Guy]
6:36:04 AM
|