CSS !important Rule

❮ Previous Reference Next ❯

Example

p {
  background-color: red !important;
}

Meaning

The !important rule specifies that a style takes precedence over any different, conflicting styles.

Note: It should be used sparingly.

Version: CSS1




Standard Syntax

selector(s) {
  property: value(s) !important;
}



Browser Support

The numbers in the table specify the first browser version that fully supports the property.




Status







❮ Previous Reference Next ❯