mungboy Posted May 7, 2008 Share Posted May 7, 2008 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 More sharing options...
ToonMariner Posted May 7, 2008 Share Posted May 7, 2008 yes.. use a style sheet for media="screen" Link to comment https://forums.phpfreaks.com/topic/104542-modifying-div-display-for-screen-only/#findComment-535252 Share on other sites More sharing options...
mungboy Posted May 7, 2008 Author Share Posted May 7, 2008 I have a style sheet for media screen. The problem is I a using javascript to dynamically change the style.display to block or none and I only want this to affect the screen css and not the print css Link to comment https://forums.phpfreaks.com/topic/104542-modifying-div-display-for-screen-only/#findComment-535257 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.