This website may use cookies. More info. That's Fine x
Welcome Login

!Important


Css

!important:

!important on any declaration will override other declarations for the same element.

!important declarations override normal declarations.

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.

 

Eg: to make the paragraph text always red:

p { color: #ff0000 !important; }

Created on: Wednesday, March 23, 2011 by Andrew Sin