[thelist] Using quotes to surround a @import url

Sharon F. Malone sfmalo at 24caratdesign.com
Sun Jul 21 14:33:00 CDT 2002


On Sunday, July 21, 2002 11:09 AM, Bill wrote:


> 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

So, in practice, would it be better to omit the url and parens entirely? Would that help more browsers to follow the @import instructions?

Sharon
---------------------------------------------------------------------------
Sharon F. Malone
"web design and Internet writing services"
http://www.24caratdesign.com
sfmalo at 24caratdesign.com




More information about the thelist mailing list