Forum Moderators: not2easy

Message Too Old, No Replies

CSS linking for Netscape 4.x

My basic.css file wont doesnt seem to work in older browers..

         

donovanh

4:32 pm on Jun 18, 2003 (gmt 0)

10+ Year Member



Hi,

I'm trying to create a two-tiered css setup that gives more complex styles to the modern browsers using the import rule, and the link rule to serve a more basic sheet to the older browsers. Unfortunately, testing in many versions of netscape 4 (from 4.7 up) doesnt show the basic sheet.

The code used is this:

<link rel="StyleSheet" href="basic.css" type="text/css" media="all" />
<style type="text/css" media="all">@import "complex.css";</style>

Any idea why the basic sheet isnt being picked up?

Thanks,

Don

pageoneresults

4:37 pm on Jun 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Not sure but I think the media="all" is a problem with NN4.x...

Another bug in the Netscape 4.x CSS handling is that any stylesheet media that is not equal to "screen" will cause the linked stylesheet to be ignored.

DrDoc

4:38 pm on Jun 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World!

NN4 doesn't understand media="all", it only understands media="screen".

Change the media declaration to "screen", or omit the media statement entirely (since "all" is the default value).












Too late ;)

Nick_W

4:46 pm on Jun 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, Welcome to WebmasterWorld! [webmasterworld.com]

You might find these interesting too. They are from the CSS Library [webmasterworld.com] (link at top of forum)

Hiding CSS From Older Browsers [webmasterworld.com]
Making Stylesheets Work in NN4 [webmasterworld.com]

Nick