Print only Part of a Website


Every once in awhile I re-learn something I already knew and am forced to slap myself in the forehead. Earlier today I wrote a short article on creating a print.css file for your website or blog. This is kind of a quick partner post for those folks who are forced to deal with sites that don't offer up a good alternate stylesheet for printing purposes.

As I said - this is something I knew but forgot.

Print SelectionDid you know you can highlight text on a webpage and then only print that text without copying and pasting it? Simply highlight a block of code and then click file->print. About partway down the screen you'll be shown a dialog which gives you the choice of printing the whole document, a range of pages or simply the selection. The "selection" option will only be available if you've already highlighted text.

This is ideal for when you don't want to print a header, a sidebar, comments or even partial blocks of text. It works in both Firefox and IE - I don't know about any other browsers though.


Leave a Reply