Loading...
Calculate CSS specificity online for free. Find selector weight and priority. Debug CSS conflicts.
Calculate CSS selector specificity to debug styling conflicts
How CSS Specificity Works:
Paste your CSS selector (e.g., div.class#id)
Click calculate to get specificity breakdown
See specificity in format (IDs, Classes, Elements)
Higher specificity wins style conflicts
Paste your CSS selector (e.g., div.class#id)
Click calculate to get specificity breakdown
See specificity in format (IDs, Classes, Elements)
Higher specificity wins style conflicts
IDs count as 100, classes/attributes/pseudo-classes as 10, and elements/pseudo-elements as 1.
The last rule in CSS wins when specificity is identical.
!important overrides all specificity, but it is not considered part of the specificity calculation.
Inline styles have higher specificity (1,0,0,0) than any selector, except !important.