IT Admin

CSS, How to use @import styles

by admin on Aug.14, 2009, under Tutorials

@import Styles?

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

@import “advanced.css”;

p {
font-family: arial, helvetica, san-serif;
margin: 1em;
padding: 1em;
background-color: black;
}

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



  • Share/Bookmark
No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...