HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by hutrdvnj | Hacker News Reader
Full thread
hutrdvnj
·
What happens in case of multiple contradicting !important statements?
View on HN
cxcorp
·
CSS has a concept of "specificity" [1] which is applied also in the case of !important. Basically the most specific rule wins.
[1]:
https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity
maxbaines
·
In-line css takes priority.
Reply on news.ycombinator.com