CSS Specificity Calculator
Enter a CSS selector to calculate and understand its specificity.
IDs
1
Classes, Attributes, Pseudo-classes
3
Elements, Pseudo-elements
5
Explanation
Selects any <nav> element with the ID "#main-nav", that is a direct child of any <ul> element with the class(es) .menu, that is a direct child of any <li> element with the class(es) .menu-item.
Breakdown
IDs (1)
#main-navClasses (2)
.menu.menu-itemPseudo-classes (1)
:hoverElements (4)
navulliaPseudo-elements (1)
::before