liveBook · Manning

Flex-wrap

The CSS flex-wrap property specifies whether flex items remain on one line or wrap onto multiple lines.

How 3 Manning books explain it

Web Design Playground

A CSS flexbox property that determines whether flex items stay on one line or wrap onto multiple lines.

How it is used
Controls whether flex items stay in one row or column or wrap into multiple lines in flexible layouts.
How deep it goes
Defines three values and explains default shrinking and cross-axis placement, without detailing browser layout algorithms.
Examples
Shows horizontal-axis arrangements for all three values and a liquid-to-flexible-layout conversion, with interactive Playground practice.
What you can do after
Operate/configure it on a flex container to create multiple rows or columns when items need more room.

Read how Web Design Playground explains flex-wrap →

Web Design Playground, Second Edition

The CSS flex-wrap property specifies whether flex items are forced onto one line or can wrap onto multiple lines.

How it is used
Controls whether Flexbox items remain on one line or wrap into multiple rows or columns.
How deep it goes
Defines three values and contrasts wrapping with item shrinking, but defers detailed multi-line alignment to align-content.
Examples
Uses nowrap, wrap, and wrap-reverse in a flex container, with an interactive comparison and a figure showing their effects.
What you can do after
Apply it via CSS to choose whether flex items stay together or form additional rows or columns.

Read how Web Design Playground, Second Edition explains flex-wrap →

CSS in Depth, Second Edition

The CSS flex-wrap property specifies whether flex items remain on one line or wrap onto additional lines or columns.

How it is used
Controls whether flex items remain in one line or move into additional rows or columns when the container cannot contain them.
How deep it goes
Defines three values and explains overflow, flex-shrink interaction, and height constraints for column wrapping.
Examples
Uses nowrap, wrap, wrap-reverse, and flex-flow: column wrap as concrete declarations.
What you can do after
Apply wrapping rules to flex containers and predict when items form new rows or columns.

Read how CSS in Depth, Second Edition explains flex-wrap →

Also covered in

What to know first

Related concepts

Questions about flex-wrap

What is flex-wrap?

The CSS flex-wrap property specifies whether flex items remain on one line or wrap onto multiple lines.

Which Manning books explain flex-wrap?

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

What should I know before learning flex-wrap?

Manning books that teach flex-wrap usually introduce flexbox first.

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.