Go to navigation

Archive for December, 2007

Putting your website to the print test, part 1

I am an avid reader of the interwebs. Google Reader is my only hope of staying (almost) up-to-date with the enormous stream of information that my always-growing list of subscriptions produces.

From time to time I stumble into a really good essay which screams to be printed on good ol’ paper: maybe it’s long and complex, maybe the original website layout is not optimal for reading, maybe I’m about to go to the bathroom and, boy, I love reading while… well, you get the point.

The problem is that not all authors cares about their content being put on something other than a screen… Yes, your pale-green background with darker-green 7pt text is totally rad, and will totally suck when my laser printer turns it into a blob of (simulated) gray.

In this article series I’ll be putting a bunch of popular websites to the printer test, and see how they fare.

Test Setup

  1. Open a single post in Firefox (simulating a desktop width of 1024px) and take screenshots of the content.
  2. Use Firefox to print the post to a PDF printer (the freeware CutePDF, which in turn relies on GhostScript for PDF generation).
  3. Open the generated PDF and take a screenshots of the content.
  4. Crop & resize the webpage screenshot to match the PDF one as much as possible.
  5. Elaborate and comment :)

Test subject nr.1: Jeff Atwood’s “Coding Horror”

web address: www.codinghorror.com

Jeff is one of my favorite bloggers: he regularly writes a tremendous amount of well-documented and interesting articles, with an overall quality I could only dream of.

ch_topch_comments_bottom_screen

As soon as you open his blog, it’s clear that Jeff is all about content and readability: a two-column layout with fluid content area and a thin and unobtrusive sidebar, almost-black (#333333, for us color-obsessed) text with white background and blue links which underline when hovered. Jeff has advertising, but all the ads are text based and carefully placed where they do not interfere with the content: two in the sidebar, one at the bottom of the post, before the comments.

Comments are allowed with CAPTCHA as a safety measure. Each comment has a light blue background, except for Jeff’s own comments which have a light red tint. And that’s it: no annoying gravatars, no shiny AJAXy stuff, just the meat. Oh, and a small copyright notice at the bottom.

Overall, this is a layout that could already fit the printed media. But Jeff went the extra mile and customized things further with a dedicated “print.css”:

ch_top_PDFch_comments_bottom_PDF

The sidebar is gone and the post content takes all the available width. The search bar on the top right is gone, while the (small) text ad at the end of the post is still there. Comments are still there, as well as the final copyright notice. The comment input form is obviously gone.

Overall, Jeff did a great job with his print stylesheet. However, there are a few glitches:

And that’s it for part one. In part two, we’ll take a look at Scott Hanselman’s Computer Zen. Stay tuned!