liveBook · Manning

Align-content

The CSS align-content property distributes flex lines or grid tracks along a container’s cross or block axis when free space is available.

How 3 Manning books explain it

Web Design Playground, Second Edition

The CSS align-content property controls the distribution of flex lines or grid tracks along the cross axis of a container.

How it is used
Arranges multiple wrapped flex lines along a container’s cross axis.
How deep it goes
Defines seven values and their effects on whole lines, then applies one in a gallery; stops short of layout internals.
Examples
Uses a value-comparison figure and a photo gallery whose wrapped thumbnails stay at the top above a footer.
What you can do after
Operate/configure it by choosing a line-placement value or using `flex-start` to prevent unwanted spacing between gallery rows.

Read how Web Design Playground, Second Edition explains align-content →

Web Design Playground

A CSS property that aligns flex lines or wrapped content within a flex container on the cross axis when extra space is available.

How it is used
Arranges multiple wrapped flex lines along a container’s cross axis.
How deep it goes
Defines the property and explains six values, including the default and how space-around distributes gaps.
Examples
Shows outlined-container comparisons of the values and offers an interactive Playground to try them.
What you can do after
Operate/configure it by choosing a value to position wrapped flex lines along the cross axis.

Read how Web Design Playground explains align-content →

CSS in Depth, Second Edition

The CSS align-content property distributes grid tracks or flex lines along the container's block or cross axis when free space is available.

How it is used
Controls how wrapped flex lines or underfilled grid tracks occupy available space inside a container.
How deep it goes
Explains the property through flex and grid behavior, supported values, free-space calculations, and a concrete grid example.
Examples
Uses a 1200px grid containing four 200px rows to demonstrate distribution of 400px of unused space.
What you can do after
Apply it via CSS to position, stretch, or distribute wrapped flex lines and grid tracks within available container space.

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

Related concepts

Questions about align-content

What is align-content?

The CSS align-content property distributes flex lines or grid tracks along a container’s cross or block axis when free space is available.

Which Manning books explain align-content?

Web Design Playground, Second Edition, Web Design Playground and CSS in Depth, Second Edition.

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.