CSS Specificity (Exceptions)

  • The specificity rules above have a couple additional notes:
  • You can use !important on styles to immediately jump to the top of the specificty
  • If all of the above tie, use document ordering
  • pseudo-classes count as classes (except :not())

6 / 14