View Full Version : Printer friendly pages

05-06-2007, 04:28 PM
Hello everybody!

I want the users of my site to be able to print. (like those pages we brose and they have a little printer image that when clicked pops up a new window)

I red this article (http://www.codeproject.com/useritems/javascript_print_page.asp) but I didn't understand how is it possible to change the pop up window's layout. For example, I need the font to be smaller.

Thank you in advance

05-06-2007, 11:57 PM
That is the old fasioned way of doing it from before browsers supported stylesheets properly. The correct way to do it now is to have one stylesheet with media="screen" that defines the appearance you want the page to have on the screen and a second stylesheet with media="print" that defines the way that you want the same content to look when printed. No second copy of the page content or JavaScript is required.