import Styles


@import Styles

Header and external style sheets also can import other style sheets using the @import rule as shown in Listing 4.6. The @import rule must be placed before all other rules in the header or external style sheet.

Listing 4.6. CSS Code Containing an Imported Style Sheet
@import "advanced.css"; p {     font-family: arial, helvetica, sans-serif;     margin: 1em;     padding: 1em;     background-color: gray;     width: 10em; } 

Imported styles can be used to link to multiple CSS files as well as to hide styles from older browsers.




Sams Teach Yourself CSS in 10 Minutes
Sams Teach Yourself CSS in 10 Minutes
ISBN: 0672327457
EAN: 2147483647
Year: 2005
Pages: 234
Authors: Russ Weakley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net