liveBook · Manning

Flexbox

Also called flex

Flexbox is a CSS one-dimensional layout model for arranging, sizing, aligning, and distributing items along a row or column.

How 7 Manning books explain it

Tiny CSS Projects

Flexbox is a CSS layout model for aligning and distributing items along a single axis.

How it is used
Positions and aligns elements in profile cards, checkout layouts, forms, and small interface controls.
How deep it goes
Works through container alignment, spacing, and item sizing with CSS declarations, without descending into browser layout internals.
Examples
Uses a centered profile card, spaced statistics, a wide-screen checkout cart, and aligned credit-card details.
What you can do after
Operate/configure it to center elements, distribute row contents, and size adjacent sections with CSS Flexbox properties.

Read how Tiny CSS Projects explains flexbox →

Web Design Playground

A page layout approach that uses CSS flexible box formatting to arrange and align items in a container.

How it is used
Arranges page components and small layouts so child elements can align, resize, and wrap as space changes.
How deep it goes
Works through container axes and alignment, item sizing, wrapping, and page examples, but stops short of older-browser prefix syntax.
Examples
Uses a centered heading, thumbnail list, holy-grail layout, photo gallery, and portfolio page.
What you can do after
Build it from scratch with CSS flex containers and item properties to arrange navigation, columns, thumbnails, and page sections.

Read how Web Design Playground explains flexbox →

Web Design Playground, Second Edition

Flexbox, or the CSS Flexible Box Layout module, arranges items along a single horizontal or vertical axis with flexible sizing and wrapping.

How it is used
Arranges page components along a horizontal or vertical axis, often alongside CSS Grid for overall layout.
How deep it goes
Works through container and item properties, centering, nested layouts, and projects; defers complex two-dimensional layouts to CSS Grid.
Examples
Uses a centered heading, a holy grail layout, a wrapping photo gallery, and a Grid-assisted portfolio.
What you can do after
Build it from scratch: center elements and assemble Flexbox-based page sections, including navigation, columns, and wrapping thumbnails.

Read how Web Design Playground, Second Edition explains flexbox →

Web Components in Action

CSS Flexbox is a one-dimensional layout model for arranging elements along a row or column with flexible sizing and alignment.

How it is used
Arranges a photo carousel’s headers, image area, and buttons vertically within a styled custom element.
How deep it goes
Demonstrates column direction and flexible remaining space, without developing a broader Flexbox model.
Examples
Uses a 500-by-300 photo carousel whose image container fills space between headings and navigation buttons.
What you can do after
Build it from scratch by applying column-oriented Flexbox and flexible sizing to a custom photo carousel.

Read how Web Components in Action explains flexbox →

CSS in Depth, Second Edition

Flex is a CSS display value that makes an element a flex container for its children.

How it is used
Arranges flex items in rows or columns, especially for equal-height layouts and alignment.
How deep it goes
Works through direction, sizing, nested containers, and alignment, while treating less-used spacing and ordering options as reference material.
Examples
Uses unequal-height tiles, a stylized price, and a navigation menu to show sizing and alignment choices.
What you can do after
Build it from scratch with `display: flex`, direction, gaps, sizing, and alignment; choose grid when cross-row alignment matters.

Read how CSS in Depth, Second Edition explains flexbox →

Build a Website with ChatGPT

Flexbox is a CSS layout model in which a container arranges and distributes its child items along a flexible one-dimensional layout.

How it is used
Uses CSS Flexbox to arrange navigation links, photo galleries, and portfolio cards instead of leaving them in a vertical stack.
How deep it goes
Explains containers, horizontal arrangement, distribution, centering, and wrapping, but defers deeper Flexbox mechanics.
Examples
Demonstrates navigation links, a wrapping photo gallery, and portfolio cards constrained between minimum and maximum widths.
What you can do after
Apply it via CSS or a precise ChatGPT prompt to build layouts that distribute items, wrap content, and adapt across screen sizes.

Read how Build a Website with ChatGPT explains flexbox →

D3.js in Action, Third Edition

Flexbox is a CSS layout model for arranging elements along one or more flexible rows or columns.

How it is used
Organizes multiple visualizations and text into responsive dashboard layouts.
How deep it goes
Explains containers, rows, columns, wrapping, gutters, widths, and breakpoints with CSS and React examples.
Examples
Uses a rankings visualization, scatterplot, and bar chart arranged across desktop, tablet, and mobile layouts.
What you can do after
Build it from scratch by configuring containers, nested rows, flexible columns, gutters, and breakpoint-specific widths.

Read how D3.js in Action, Third Edition explains flexbox →

Also covered in

What to know first

Related concepts

Questions about flexbox

What is flexbox?

Flexbox is a CSS one-dimensional layout model for arranging, sizing, aligning, and distributing items along a row or column.

Which Manning books explain flexbox?

Tiny CSS Projects, Web Design Playground, Web Design Playground, Second Edition, Web Components in Action, CSS in Depth, Second Edition, Build a Website with ChatGPT and D3.js in Action, Third Edition.

What should I know before learning flexbox?

Manning books that teach flexbox usually introduce CSS, HTML, digital image and main first.

What is the difference between flexbox and CSS Grid?

Flexbox is a CSS one-dimensional layout model for arranging, sizing, aligning, and distributing items along a row or column. CSS Grid is a CSS layout system for arranging elements in two-dimensional rows and columns.

What are the parts of flexbox?

Flexbox includes flex.

What is flexbox also called?

Flexbox is also called flex.

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.