Important Rule

From CSS Discuss

Jump to: navigation, search

Following a Css Rule with !important allows it to override earlier (or subsequent?) rules that apply to the element in question.

Seen recently on one of the W3C mailing lists...

That is one of the ground rules of HTML+CSS that authors seem not to understand. The user does have ultimate control, by choosing a browser that fits them and by using !important rules (or the equivalent as IE Tools | Options | Accessibility | { Ignore author fonts, Ignore author colours}. It was actually one of the policy changes between CSS1 and CSS2 that, whilst a user normal rule is overridden by an author rule, a user !important rule has ultimate authority.

Personal tools