Share it

Bookmark and Share

Translate

Monday, June 25, 2012

0 What does !important mean in CSS?

Cascading Style Sheets cascade. This means that the styles are applied in order as they are read by the browser.The !important rule is a way to make your CSS cascade but also have the rules you feel are most crucial always be applied. A rule that has the !important property will always be applied no matter where that rule appears in the CSS document. So if you wanted to make sure that a property always applied, you would add the !important property to the tag. So, to make the paragraph text always red, in the above example
Example:
p { color: #ff0000 !important; }
p { color: #000000; }

0 comments:

Post a Comment

Thanks for your valuable Comment

 

TechnoTipworld- Tips,Tricks,Technology Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates