liveBook · Manning

Flex item

A flex item is a child of a flex container that participates in its flexible layout.

How 3 Manning books explain it

Web Design Playground, Second Edition

A flex item is a child element of a flex container that participates in flexible sizing and alignment along the container’s axes.

How it is used
Arranges child elements in one-dimensional headers, navigation, sidebars, and small page layouts.
How deep it goes
Explains automatic item creation, axes, sizing, order, and alignment through property-level examples.
Examples
Demonstrates six child divs, a centered h1, navigation list items, and article-and-aside columns.
What you can do after
Apply it via CSS Flexbox to size, reorder, align, and proportionally distribute container children.

Read how Web Design Playground, Second Edition explains flex item →

CSS in Depth, Second Edition

A flex item is a child of a flex container that participates in flexible one-dimensional layout.

How it is used
Arranges direct children within a flex container for menus, columns, nested tiles, and aligned text.
How deep it goes
Explains item sizing through basis, growth, and shrinkage, then applies alignment and ordering; defers some controls to a reference-style overview.
Examples
Uses a spaced navigation menu, unequal-content columns with nested tiles, and a three-part price display.
What you can do after
Build it from scratch: identify direct children as items, size and space them, and nest containers when inner tiles must fill a column.

Read how CSS in Depth, Second Edition explains flex item →

Web Design Playground

A child element participating in a flex formatting context, whose size and position are controlled by flexbox properties.

How it is used
Arranges child elements within page components such as navigation, content columns, and footers.
How deep it goes
Explains automatic item creation and works through growth, shrinking, basis, ordering, and individual alignment.
Examples
Uses navigation list items, a centered heading, article-and-aside columns, a holy-grail layout, and footer content.
What you can do after
Apply flexbox properties to size, order, align, and distribute child elements in a container.

Read how Web Design Playground explains flex item →

Related concepts

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.