CSS Specificity Calculator (Debug Style Overrides)

Why isn't my rule applying? Paste your selectors — one per line — and see their (a,b,c) weights ranked, with a breakdown of what counted.

—
Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/css-specificity-calculator" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/css-specificity-calculator" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - CSS Specificity Calculator & Weight Scorer</a></div>

How specificity works

When two rules target the same element, the browser picks the more specific one. Specificity is counted as three numbers (a, b, c):

Compare left to right: (1,0,0) beats (0,5,0); (0,2,0) beats (0,1,3). The universal selector *, combinators (> + ~) and :where() add nothing.

Modern selectors

Practical takeaway

If a style "isn't applying", the almost-always cause is specificity — your other rule has a higher (a,b,c). The calculator shows you the numbers so you can decide: raise yours (add a class or ID), or lower theirs (use :where() to zero out a wrapper selector).