The align-self property lets you override cross-axis alignment for a single flex item or grid item. It is the item-level companion to align-items, useful when one box needs different positioning than its neighbors.
01
Item Override
Align one item differently.
02
Syntax
Apply it on the item itself.
03
auto Value
Inherits from align-items.
04
Flexbox
Pin or center one child.
05
CSS Grid
Align inside a grid area.
06
vs align-items
One item vs all items.
Fundamentals
Definition and Usage
The align-self CSS property overrides the cross-axis alignment of an individual flex item or grid item. While align-items sets the default for every item in the container, align-self lets one item break that rule.
This is helpful for layouts like a row of cards where one action button sits at the bottom, or a toolbar where one icon needs vertical centering while the rest stay top-aligned.
💡
Beginner Tip
Set align-items on the container for the group, then use align-self only on the item that needs a different alignment.
The caption ignores the container’s center alignment and lines up on the text baseline instead.
🧠 How align-self Works
1
Container sets the default
align-items on the flex or grid container defines the normal cross-axis alignment.
Default
2
One item gets align-self
The selected item uses its own keyword instead of inheriting through auto.
Override
3
That item moves on the cross axis
Only the targeted item changes position. Neighbors keep the container default.
Result
=
🎯
Precise item control
You get flexible layouts without changing alignment for every sibling.
Compatibility
Universal Browser Support
align-self is supported in all modern browsers for both flexbox and CSS Grid layouts.
✓ Baseline · Flexbox & Grid
Item-level alignment you can rely on
Chrome, Firefox, Safari, Edge, and Opera support align-self in current versions.
98%Modern browser support
Google Chrome29+ flex · 57+ grid
Full support
Mozilla Firefox28+ flex · 52+ grid
Full support
Apple Safari9+ flex · 10.1+ grid
Full support
Microsoft Edge12+ flex · 16+ grid
Full support
OperaModern versions
Full support
align-self property98% supported
Bottom line: Use align-self confidently for item-level alignment in modern layouts.
Wrap Up
Conclusion
The align-self property gives you precise control over one flex or grid item on the cross axis. It is the perfect tool when most items should follow align-items, but one item needs its own alignment.
Start with auto, then override with values like flex-end, center, or stretch only where the layout truly needs an exception.