[thelist] different ways of importing css + tip

Geoff Sheridan web2k2 at premonition.co.uk
Wed Nov 13 07:38:00 CST 2002


Kristina

@import is generally used to hide sheets from NN4, which does not
understand the construction.
see:
http://pixels.pixelpark.com/~koch/hide_css_from_browsers/summary/

My preference is for: @import("styles.css");

Regarding the use of comments, it depends on the version of HTML you
are using - in XHTML they are not allowed, IIRC. They are used to
hide the css from VERY old browsers - I suspect they are an
anachronism. In any event I don't include comments around my @import
statements and this has never caused any problems.

HTH

Geoff



More information about the thelist mailing list