Default Behavior (inherits align-items)
Item 1
Tall Item 2
Item 3
Item 4
See how align-self
allows individual items to override the container's
alignment. Perfect for creating unique layouts and handling special cases.
Normal content
This card is taller and stretches to be prominent
FeaturedNormal content
align-self
overrides the container's align-items
for individual items
auto
- Uses container's align-items (default)flex-start
- Aligns to start of cross axisflex-end
- Aligns to end of cross axiscenter
- Centers on cross axisstretch
- Stretches to fill cross axisbaseline
- Aligns to text baseline