Specificity and the Cascade

Chapter 4

Figures

  1. How different rules affect a document
  2. Important rules always win
  3. Inheritance of styles
  4. A simple tree diagram
  5. Why borders aren’t inherited
  6. Zero specificity defeats no specificity
  7. Directly assigning styles to the relevant elements
  8. Higher specificity wins out over lower specificity