View Full Version : Using CSS to Generate Printer-Friendly Webpage for IE, Netscape, and Firefox

05-13-2006, 11:42 AM
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?

05-23-2006, 06:26 AM
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?