Specificity and the Cascade
Chapter 4
Figures
- How different rules affect a document
- Important rules always win
- Inheritance of styles
- A simple tree diagram
- Why borders aren’t inherited
- Zero specificity defeats no specificity
- Directly assigning styles to the relevant elements
- Higher specificity wins out over lower specificity