stretch (default)
Short
Medium content here
Much longer content that takes up more space
with a line break
with a line break
See how align-items
controls how flex items align along the cross
axis.
align-items
controls alignment along the cross axisstretch
- Items fill available height (default)flex-start
- Items align to cross axis startflex-end
- Items align to cross axis endcenter
- Items center on cross axisbaseline
- Items align to text baselineflex-direction
changes, the cross axis direction changes tooalign-self
to override alignment for individual items