align-self
Overrides the align-items value for a single item, aligning it on the cross axis without affecting its siblings.
- auto (default): inherits the container’s align-items value.
- flex-start: places the item at the start of the cross axis.
- center: centers the item on the cross axis.
- flex-end: places the item at the end of the cross axis.
- stretch: stretches the item along the cross axis if it has no fixed size.
- baseline: aligns the item along its text baseline.
Example
The container centres its children with align-items: center, so auto also leaves them centred. The child with the item class can escape that rule with align-self.
ResultLive
html
css