CSS Specificity Calculator

Calculate and break down the specificity of any CSS selector.

CSS Selector
Specificity Breakdown
Enter a CSS selector above to see the breakdown.
Specificity Score
0
A
IDs
,
0
B
Classes/attrs
,
0
C
Elements
Score: 0
0, 0, 0
Specificity (A, B, C)
Note: Inline styles = (1,0,0,0) and !important overrides cannot be calculated from a selector string alone.