Share this Page URL

Chapter 9. Hacks and Workarounds > Delivering Alternative Values to Internet Ex... - Pg. 214

.p2 { font-size: 200%; text-decoration: underline; } </style> Navigator 4 won't interpret style sheets when there is more than one value for the media attribute. So, if you use a combination of values for the media attributes, Navi- gator 4 ignores the style sheet: <link rel="stylesheet" type="text/css" href="/css/advanced.css" media="screen, print" > You also can hide styles from Navigator 4 by using descendant selectors--for instance, by placing the html element as a selector before the next selector (since Navigator 4 doesn't include the html element in the parsed document). In the following example, the text size and decoration won't appear in Navigator 4: html .p2 { font-size: 200%; text-decoration: underline; } See Also, Caio Chassot's web page about the work- around; Netscape's original proposal for JSSS at 1/WD-jsss-960822; more issues about Navigator 4.x at