[thelist] import style sheet

.jeff jeff at members.evolt.org
Fri Mar 8 12:00:01 CST 2002


veronica,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Veronica Yuill
>
> Can anyone point me to a resource that explains clearly
> how the @import system of referencing style sheets
> works?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

it's really pretty simple.  it doesn't really require a resource.  here's
how you use it.  you can place the following within a <style> block or
within an external stylesheet.

@import: url(../styles/import.css);
@import: url('/styles/import.css');
@import: url("styles/import.css");

all the usual rules about paths in css apply to the url of the imported css
document.  any of the above are valid (without quotes, with single-quotes,
or with double-quotes).  i personally prefer the middle one, both for quotes
and the root relative path.

good luck,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list