![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
No bug, it's because of the title-attibutes. Read about the three different ways of referring to an external stylesheet (persistent, preferred, alternate): Alternative Style: Working With Alternate Style Sheets http://www.alistapart.com/articles/alternate/ In your case both stylesheets have a title-attribute, so the browser takes the first as the preferred one and the other as an alternative. That's why the print-stylesheet doesn't work: If in print-mode the browser still prefers the first, but this only applies to screen-media. If you switch to the other stylesheet (Mozilla and Opera allow you to switch between different alternate stylesheets if available) the result is vice versa: The print-stylesheet works, but in screen-mode no styles are used, because the now preferred stylesheet only applies to print- media. Simply remove the title-attributes to make your both stylesheets persistent and it should work as expected. HTH Micha |
#12
| |||
| |||
|
|
Thanks for the explanation, Michael. I didn't realize the title attribute had that effect when the stylesheets used different media types. That makes sense and it works like you described. |
![]() |
| Thread Tools | |
| Display Modes | |
| |