Align-self
The CSS align-self property controls an individual item’s alignment along its container’s cross or block axis, overriding the container’s default.
Web Design Playground
A CSS flexbox property that overrides the default cross-axis alignment of an individual flex item.
- How it is used
- Overrides a flex container’s cross-axis alignment for one item.
- How deep it goes
- Defines the item-level override, shows its CSS values and an alignment example, and refers elsewhere for fuller value explanations.
- Examples
- Shows a container aligned to flex-start with its last item aligned to flex-end.
- What you can do after
- Operate/configure it by setting align-self on an individual flex item or using auto to restore the container’s alignment.
Web Design Playground, Second Edition
The CSS align-self property specifies an individual flex item’s cross-axis alignment, overriding the container’s align-items value.
- How it is used
- Overrides a flex container’s align-items setting for one item along the cross axis.
- How deep it goes
- Defines the override, lists its values, and illustrates the visible result without exploring implementation internals.
- Examples
- Shows align-items set to flex-start while the last item uses align-self: flex-end.
- What you can do after
- Operate/configure it to align one flex item differently from its neighbors.
Read how Web Design Playground, Second Edition explains align-self →
CSS in Depth, Second Edition
The CSS align-self property specifies the block-axis or cross-axis alignment of an individual item within its layout container.
- How it is used
- Aligns one flex item differently from the container’s shared cross-axis alignment.
- How deep it goes
- Defines the override rule, supported keywords, shorthand relationship, and a worked text-alignment example.
- Examples
- Uses a stylized $20.00 price tile whose cents receive an align-self: flex-start override.
- What you can do after
- Apply align-self via CSS to override a flex container’s shared alignment for a selected item.
What to know first
- flex containerA flex container is an element whose children are laid out as flex items according to the CSS Flexible Box Layout model.
- main axisThe main axis is the primary direction in which a flex container arranges and distributes its flex items.
Related concepts
- align-itemsuses · The CSS align-items property specifies how items are aligned along a container’s cross axis in flexbox and grid layouts.
- flexboxconfigures · Flexbox is a CSS one-dimensional layout model for arranging, sizing, aligning, and distributing items along a row or column.
- align-contentcontrasts with · The CSS align-content property distributes flex lines or grid tracks along a container’s cross or block axis when free space is available.
Questions about align-self
What is align-self?
The CSS align-self property controls an individual item’s alignment along its container’s cross or block axis, overriding the container’s default.
Which Manning books explain align-self?
Web Design Playground, Web Design Playground, Second Edition and CSS in Depth, Second Edition.
What should I know before learning align-self?
Manning books that teach align-self usually introduce flex container and main axis first.
What is the difference between align-self and align-content?
The CSS align-self property controls an individual item’s alignment along its container’s cross or block axis, overriding the container’s default. The CSS align-content property distributes flex lines or grid tracks along a container’s cross or block axis when free space is available.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


