April 2005
Intermediate to advanced
336 pages
6h 33m
English
Imported style sheets are a lot like linked style sheets, in that you create a separate file for the styles you want to import. Then you can either import those sheets into a primary style sheet that is then linked to the document, or import directly into the document.
Importing into a document actually involves two types of style sheets: the separate style sheet that's to be imported (I'll call that import.css) and an embedded style sheet in the document. This is because importing isn't done with an element such as link; instead, the CSS directive @import is used (see Example 7-4).
Example 7-4. Importing style with an embedded sheet
<head><head><title>working with style</title> ...
Read now
Unlock full access