Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2004
    Athens, Greece
    Thanked 0 Times in 0 Posts

    Printer friendly pages

    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 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

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Sydney, Australia
    Thanked 662 Times in 651 Posts
    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.
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts