3 ms·
What happens in case of multiple contradicting !important statements?
by hutrdvnj 5y ago
What happens in case of multiple contradicting !important statements?
- maxbaines 5y agoIn-line css takes priority.
- cxcorp 5y agoCSS 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 https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity