Grid first approach
instead of setting up heights by guessing and visually testing, the grid first approach helps us to establish a clear rule on how vertical elements should behave.
To do this, we use rem as the standard unit for all vertical values like line-height
, margin-top
, and height
.