1001Ferramentas
🎯Dev

CSS Specificity Calculator

Compute the specificity (a, b, c) of a CSS selector — IDs, classes/attributes/pseudo-classes, elements. Useful to understand why your rule is not applying. Everything in your browser.

IDs (a)
classes/atributos/pseudo (b)
elementos (c)
Score (a, b, c)

Calculate a CSS selector's specificity

When a CSS rule simply won't apply, specificity is usually the one to blame. It's the point system that decides which selector wins when two compete for the same element. Paste a selector here and you get its specificity laid out clearly.

The value shows up split across the three levels that count: IDs first, then classes, attributes and pseudo-classes, and finally elements and pseudo-elements. With that breakdown in front of you, it becomes obvious why a #id beats ten classes, or why your rule keeps getting overridden. Writing more predictable CSS follows naturally from there.

Because the calculation happens inside your browser, you just paste the selector to see its weight. A handy companion when you're chasing down style conflicts.

Related Tools