Tuesday 3 January 2012

What does !important mean in CSS?

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.

example: p { color: #ff0000 !important; }


No comments:

Post a Comment