skip to content

Don’t let specificity force you into strict selector conventions. Cascade Layers allow us to manage specificity without resorting to naming hacks or the !important flag.

12 Days of Web

Specificity is only one part of the CSS Cascade, but it’s the part we interact with the most often – and it can quickly become a labyrinth of twisted selectors, frustration, and swearing. That’s a terrible way to start the holidays! Unless we’re talking about the Jim Henson movie, which is excellent…