Skip to content

Instantly share code, notes, and snippets.

@sperrye
Last active August 7, 2019 19:58
Show Gist options
  • Save sperrye/af6f6715256ffec1b32c063513488fc4 to your computer and use it in GitHub Desktop.
Save sperrye/af6f6715256ffec1b32c063513488fc4 to your computer and use it in GitHub Desktop.
specificity
div {} = 0, 0, 0, 1 = (1)
div ul {} = 0, 0, 0, 2 = (2)
#id {} = 0, 1, 0, 0 = (100)
.class .class {} = 0, 0, 2, 0 = (20)
<element style="{}"> = 1, 0, 0, 0 = (1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment