The CSS Podcast cover image

3: Specificity

The CSS Podcast

00:00

Introduction

In our last episode, we talked about all the different ways you can select elements in order to apply style declarations. But what happens when multiple selectors target the same subject? The browser needs a way to resolve this conflict and it does so with a calculation called specificity. Think of specificity like a way to determine which selector's intent is more specific than another. And let's talk about these points, talk about how the game works, and then play a game.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app