Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the purpose of @import directive in CSS? 2

Status
Not open for further replies.

EugenePaliev

Programmer
Jul 18, 2001
537
UA
Hi all!

Why do we use @import in CSS? I've seen it on Macromedia, W3C and other sites. Why to use it?

Thank you in advance!

Good Luck! :)
 
It's often used when you want to make your website backward-compatible. NS4.x doesn't understand @import commands, so it ignores them. Therefore, if you have any CSS that is going to fatally confuse NS4.x (and it's notoriously easy to confuse that browser with CSS) you can hide it in an @imported file.

Personally, I ythink NS4.x users are too small a group to bother about now.

-- Chris Hunt
 
Thank you so much!
star.gif
++

Good Luck! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top