Importing

An alternative to linking is to import an external style sheet into a document using the @import function in the style element:

    <style type="text/css">
    <!--@import url(http://pathname/stylesheet.css);
          p {font-face: Verdana;}
    -->
    </style>

In this example, an absolute URL is provided, but a relative URL may also be used. @import commands must come before anything else (except @charset).

Get Web Design in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.