liveBook · Manning

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.

How 3 Manning books explain it

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.

Read how Web Design Playground explains align-self →

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.

Read how CSS in Depth, Second Edition explains align-self →

What to know first

Related concepts

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.