first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

CSS: Linking to an External Style Sheet; LINK; @import; Using Style Sheets Locally

At this proprietary moment in time, it is better to use LINK HTML markup instead of W3C's @import to refer to external style sheets. My tests show that Netscape browsers ignore the following W3C-recommended syntax:

<STYLE><!--
    @import url("http://server/root.css");
//-->
</STYLE>

Where root.css is the name of an external style sheet file. Both Microsoft and Netscape browsers have no trouble with the following:

<LINK
    REL="StyleSheet"
    TYPE="text/css"
    HREF="./root.css">

where the HREF value is a relative URI.

mod date: 1999-01-13T17:32:15.000Z