text baseline
The invisible line that letters sit on; aligning items to the baseline lines up their first lines of text.
In more detail
Different fonts and sizes place text at different heights, so baseline alignment keeps lines of text straight. align-items: baseline is useful when items have different font sizes, such as a price next to a label.
Related terms
- align-items — The flexbox and grid property that positions items along the cross axis, such as stretching them to equal height or centring them.
Taught in
- Deep Flexbox: Flex Grow, Shrink, Basis And Alignment Physics — Frontend Architecture & Web Platform