-
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?
-
-
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?
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks