knowbility
Introduction to CSS

Specificity

Specificity controls which rules win when one or more style declarations point to the same element.

Specificity is calculated this way:

	div {...} /* 1 */
	p.content {...} /* 11 */
	p.content ul li {...} /* 13 */
	body div#primary h1.xHead {...} /* 113

previous | next