Flex Item Alignment Override with align-self
Override the container's align-items for individual flex items using align-self.
What is align-self?
align-self overrides the flex container's align-items setting for a specific flex item. It applies to individual items, not the container.
align-self Values
Accepts the same values as align-items:
auto— inherits container's align-items (default)flex-start— aligns to cross startflex-end— aligns to cross endcenter— centers on cross axisstretch— stretches to fill cross sizebaseline— aligns text baselines
All lessons in this course
- Flex Item Alignment Override with align-self
- Order Property and Visual Reordering
- Flex Shorthand Patterns
- Common Flexbox Layouts: Nav Cards Media Object