CSS Flexbox: align-items
The align-items
property in CSS Flexbox is used to control how flex items are positioned along the cross axis of the flex container (vertically if the flex-direction
property is set on row
).
- stretch (default)
- flex-start
- flex-end
- center
- baseline
- safe – supported by Firefox
- unsafe -supported by Firefox
stretch (default)
flex-start
flex-end
center
baseline
safe – supported by Firefox
unsafe – supported by Firefox
Related
- CSS Flexible Box Layout
- CSS Flexbox: flex-direction
- CSS Flexbox: flex-wrap
- CSS Flexbox: justify-content
- CSS Flexbox: align-content