Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turning of JavaScript through CSS 1

Status
Not open for further replies.

TonDeaf

Programmer
Feb 28, 2002
4
DE
Hi,

I have this cool sliding menu bar on my site -- JavaScript. The problem is that when I do a "print-only" version through CSS, I can eliminate all the banners, graphics, etc . . . just not the JavaScript.

So, I wanted to ask: Is there a way to turn of JavaScript through CSS?

Thanks so much!
 
Try adding the following style to the elements of your menu that should not be printed:

@media print {
.notprinted1 { display: none }
.notprinted2 { display: none }
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top