Skip to content
UPEEC

Specificity

When rules conflict, the more specific selector wins: inline > id > class/attribute/pseudo-class > type.

Easy
Comments 0

Calculated as (ids, classes, types): #nav .item a = (1,1,1). Keep specificity low and flat; avoid !important.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.