Hello and welcome to our community! Is this your first visit?
Register
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
    Location
    Athens, Greece
    Posts
    39
    Thanks
    1
    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
    Location
    Sydney, Australia
    Posts
    6,603
    Thanks
    0
    Thanked 645 Times in 635 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.
    Stephen
    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
    •