by Parallax » Tue Mar 17, 2009 9:49 am
Having a print media CSS can actually save you a lot of headache. Have you ever experienced a boss or client who suddenly realized that all or part of your website doesn't print very well? Explaining the vagaries of printable backgrounds and margin-friendly markup is a complete waste of time. They don't care about the details, they just want it how they want it. It's up to you to manage those expectations, and if you grab the steering wheel, you can make your life much easier.
Early in a project's timeline I like to identify which pages, if any, need to be printable. After you've identified pages which a customer may want to print and save, you can sell this as a feature to the project manager and project stakeholders. By doing so, you've defined and quantified the notion of "print friendly" into a specific set of pages. In the same motion, you've exempted other parts of the site from this potentially difficult objective.
Now all you have to do is define a print CSS and set up the site to spawn printable content in a new window when the user wants to print it. Parts of the site print fine, parts don't - and that's OK. Everybody wins.
I blame the limitations of plain text!