[thelist] Using quotes to surround a @import url (was NS 4.08 Crasher -- why?)

Bill Mason evolt at accessibleinter.net
Sun Jul 21 13:11:01 CDT 2002


At 10:08 AM 07/21/2002, Sharon F. Malone wrote:
>A question! Been wondering what the difference is between stating:
>
>@import url(extra.css);
>
>and
>
>@import url("extra.css");
>
>What do the quote marks do? Checked out some CSS sites but, so far, can't
>find an explanation.

In theory they do the same thing, though the CSS-2 spec calls for quotes to
be present for the syntax to be valid.

In practice, some browsers will ignore the import without the quotes, and
even more ignore the syntax with the quotes.  See
<http://pixels.pixelpark.com/~koch/hide_css_from_browsers/import/>

Also see <http://www.w3.org/TR/REC-CSS2/cascade.html#at-import> for the
section of the CSS-2 spec.

Bill Mason
Accessible Internet
evolt at accessibleinter.net
http://www.accessibleinter.net/





More information about the thelist mailing list