Jump to content

Modifying div display for screen only


mungboy

Recommended Posts

Hi,

 

I have a page with two div elements - display of one is set to 'block' and the other to 'none' in my normal stylesheet.  I also have a print stylesheet that has both set to display 'block' so both get printed.

 

I am using Macromedias MM_changeProp javascript to toggle the display of the two divs.  This is fine for the screen butmucks up my print as I want both to display on printing.

 

Is there any way of setting the element.display for just one media type i.e. screen?

Link to comment
https://forums.phpfreaks.com/topic/104542-modifying-div-display-for-screen-only/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.