DevTools.run

CSS Specificity Visualizer

Compare selectors — highest specificity wins

WINSbody #main .sidebar a.active:first-child
132
#header .nav a
111
div.content p.intro
022
.nav a:hover
021
A (IDs)

#header, #nav — highest weight

B (Classes)

.nav, :hover, [type] — medium weight

C (Elements)

div, p, a — lowest weight