Contact Us

|

FriendFeed FriendFeed

|

follow us on twitter Twitter

|

 Rss Feed

|

Favorites Add to Favorites

Sunday, October 5, 2008

@import in CSS

In CSS the only valid @rule was the @import rule. @import tells a browser to import a style sheet from elsewhere and use it in conjunction with the current style sheet. A style sheet with an @import rule is said to cascade from the imported style sheet. We cover cascading in more detail in our section on Cascade and inheritance in the advanced section of the guide.

The @import rule has the following format.
@import url(http://htmlcsstutorials.blogspot.com/style/style.css);

Alternatively, you can use also use the form.
@import "http://htmlcsstutorials.blogspot.com/style/style.css";

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home