CSS Specificity

If you’ve played along with CSS a bit, you know (like I do) how to use CSS selectors in most everyday cases.

But I have never even thought about how they interact on each other much more than that. Which CSS rule wins if you start combining regular class calls, mixed with ID and html tag selectors?

Well, CSS: Specificity Wars explains it all using Star Wars metaphors! I couldn’t be happier.

There’s even a visual chart that you can print. Awesome.

Leave a Reply