- Author
- Eric A. Meyer & Estelle Weyl
- Published
- 2023
- Read
- December 2023
CSS: The Definitive Guide
A full reference for CSS, from the cascade to grid and flexbox.
Read
What I've learned
- 1
How the cascade picks a winner: origin and importance, then cascade layers, then specificity, then source order.
- 2
Which properties inherit and how to control it with inherit, initial and unset.
- 3
The box model, and why box-sizing: border-box makes sizing easier.
- 4
Flexbox is for laying things out in one direction. Grid is for two.
- 5
Logical properties like margin-inline make layouts work in any writing direction.