[thelist] CSS Question

Mark Howells mark at mountain.ch
Wed Mar 13 08:17:01 CST 2002

>> http://bluerobot.com/web/layouts/layout1.html
>> <http://bluerobot.com/web/layouts/layout1.html>
>> with IE4.0, I see absolutely no formatting?
> IIRC IE4.0 doesn't understand @import and this is how the stylesheet
> is loaded:
> <style type="text/css" media="screen">@import "layout1.css";</style>

Correct answer, almost. IE4 does understand @import, just not using the
above syntax. Alternative syntaxes such as @import url(layout1.css) work,
but then the page fails in Opera.

It's a better decision to let the older browser see the vanilla layout,
rather than the newer one.

Mark Howells

More information about the thelist mailing list