Forum Moderators: not2easy

Message Too Old, No Replies

print stylesheet not working?

         

webaster

11:38 am on Jul 2, 2005 (gmt 0)

10+ Year Member



When using the attribute media="screen,projection" for styles
then followed with a printstylesheet using the attribute media=print

eg Opera and Safari do find the print stylesheet

When using the attribute media="all" for styles
then followed with a printstylesheet using the attribute media=print

Opera and Safari do not find the print stylesheet?

Why is that? Is it because of specificity due to the cascade

Span

3:33 pm on Jul 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When you use media="all" followed by media="print" both stylesheets are used for printing. It's like having one stylesheet for all and two stylesheets for printing.
And, depending on the selectors of the rules in the print stylesheet, only some (or none) of the rules in the media="all" stylesheet will be overridden.

webaster

5:22 pm on Jul 2, 2005 (gmt 0)

10+ Year Member



I changed again allready the media=all to media="screen,projection" all works back to normal