Results 1 to 2 of 2

Thread: Using CSS to Generate Printer-Friendly Webpage for IE, Netscape, and Firefox

  1. #1
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using CSS to Generate Printer-Friendly Webpage for IE, Netscape, and Firefox

    I am using CSS to generate a printer-friendly webpage for Internet Explorer. The same CSS however is not working with Netscape or FireFox.

    As an example, I have used HVMenu in our web pages for navigation.

    To hide the HVMenu when printing, I created a class definition in our PRINT style sheet file:

    .menuItem { visibilty: hidden; display: none; }

    and in the menu_com.js file I used

    this.className = "menuItem"; in MbrSetUp() function.


    This suppresses the navigation bar from getting printed when Internet Explorer 6.0 is used. The navigation bar does not get suppressed when the page is printed from Netscape 7.1 or FireFox 1.0.

    Can someone help?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    How did you define the stylesheet that contains the print styling as the one to be used for printing? I ask because there are various ways and one is IE only. That method is the 'alternate' method. Are you using that one?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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