[thelist] CSS print stylesheets and dynamic style changes

Randy Pearson randyp at cycla.com
Thu Oct 2 03:08:21 CDT 2003


Instead of changing the *style* in your JS code, how about changing the
*class*. For example, toggle the class between "FocusTab" and "BlurTab".
Then you can use @media (or separate CSS) to define what the display value
is for those classes--making the print version work as desired.

-- Randy


-----Original Message-----

>> Quick overview: It seems as if dynamic style changes defeat some of the
advantages of print stylesheets, as something that has been dynamically
hidden cannot be made visible on hard copy by the print stylesheet.

>> The javascript is using getElementById to target the divs and is using
'display:none' and 'display:block' for visibility.




More information about the thelist mailing list