Core: learn it Step 3 of 16 on the Frontend Developer roadmap
Cascade and specificity
When two rules clash, the browser decides using specificity, source order and inheritance. Understanding this cures the habit of adding !important everywhere.
Core: learn it Step 3 of 16 on the Frontend Developer roadmap
When two rules clash, the browser decides using specificity, source order and inheritance. Understanding this cures the habit of adding !important everywhere.