!important
noun
say it: “im-POR-tunt” /ɪmˈpɔːrtənt/ or “bang im-POR-tunt” /bæŋ ɪmˈpɔːrtənt/
A flag written after a value, as in color: red !important, that makes the declaration win over normal ones whatever their selectors. Use it rarely: beating it later takes another one.
What does !important do?
!important makes a declaration beat normal ones regardless of specificity. It is hard to undo, so save it for true overrides.
.visually-hidden { position: absolute !important; }
In a sentence
- “I added !important to fix the button's color, and a week later the next color change needed one too.”
Level: Freelancer · More CSS terms at this level
Updated