Last Updated: February 25, 2016
·
600
· michaelnaman

CSS specifity

A must for anyone working with CSS

style attribute = 1000
id =100
class or pseudo class = 10
tag = 1

An Example
.my-class:hover = 20
body #my-id .my-class:hover = 121

There are many CSS rules but this is the most important!