Forum Moderators: not2easy
<style type="text/css" media="all">@import "layout1.css";</style>
The html document as well as the stylesheet validate perfectly.
When I view the site in IE, it is fine, but when it is viewed in NS 4.7, it simply doesn't pick up the stylesheet. Since I know NS4.7 supports css, there is definitely something in the above statement that's not right. Any ideas ...?
[webmasterworld.com...]
[edited by: madcat at 5:11 pm (utc) on April 29, 2003]
The rest of the browsers ignore the main style call and get the @import style sheet.
I don't think the rest ignore the first call, its just that because of the cascade the styles in the second one will take preference...something to be aware of perhaps to make sure any unwanted styles in the first sheet are explicitly overruled in the second sheet (e.g. if you're designing a simple site for NN4 with the first sheet..)
BTW I write mine like vmaster too and it works fine...
Suzy
W3C - 6.3 The @import rule [w3.org]
This will not work for NS 4.7 and below... and anything below I.E 5.0...
And for the record.. NS 4.7 supports css1 not css2... It definitely dosen't fully support css positioning.
I now use this construct:
<link rel="stylesheet" href="some.css" type="text/css" media="all" />
as NN.4 does not comprehend the media="all" statement.... which, is what you also include in your example.
Thank goodness NN4.x is just about dead and buried.
The University of Illinois, Urbana/Champaign, recently purchased 40,000 user licenses for the Opera browser----and replaced NN.4 as their default browser. Another prominent German university also recently made the change. As more educational institutions migrate to Standards compliant browser, the Web Development community as a whole will benefit greatly. --Here's to the future!
<link rel="stylesheet" href="some.css" type="text/css" media="all" />
Why do I have this nagging feeling that there is some problem with that?
It's a fantastic solution of course but I just have this idea that I looked at doing that once and dismissed it 'cos it caused some other oddities I wasn't happy with...
Am I talking rubbish or can anyone get what I'm at here?
Nick