
CSS10 min read
CSS Specificity and the Cascade: Which Rule Wins?
Why isn't my CSS working? Learn how the cascade and specificity decide which rule wins, with a live demo that ranks every rule and explains each loss.
#css#specificity
11 topics · 29 posts
Styling, layout, and design systems on the web.
3 posts

Why isn't my CSS working? Learn how the cascade and specificity decide which rule wins, with a live demo that ranks every rule and explains each loss.
#css#specificity

Type, class, id, attribute, combinators and pseudo-classes: learn how CSS selectors pick elements, with a live lab where you type your own.
#css#selectors

What a CSS rule is made of, how the browser matches rules to elements, and inline vs style tag vs external stylesheet, explained with live demos.
#css#html