liveBook · Manning

Flex-flow

As explained in CSS in Depth, Second Edition

The CSS flex-flow property is a shorthand that sets a flex container's flex-direction and flex-wrap properties.

flex-flow is a shorthand for flex-direction and flex-wrap, letting one declaration control both the direction and wrapping behavior of flex items. section 4.4.1

Wrap items into columns

Use flex-flow: column wrap to flow items from top to bottom and wrap them into a new column when necessary. Column wrapping requires a constrained container height; otherwise, the container grows to contain its items. section 4.4.1

The wrapping component of flex-flow follows these rules:

  • nowrap is the initial value; wrap and wrap-reverse allow items to move onto additional lines. section 4.4.1
  • When wrapping is enabled, items that would overflow move to a new line instead of shrinking according to flex-shrink. section 4.4.1

How CSS in Depth, Second Edition covers it

How deep it goes
Defines the shorthand and explains wrapping behavior, including column constraints, but does not develop broader layout patterns.
Examples
Uses flex-flow: column wrap to demonstrate vertical flow and wrapping into additional columns.
What it assumes
Assumes familiarity with flex containers and flex items while identifying flex-direction and flex-wrap as the component properties.
What you can do after
Apply it via CSS to set a flex container’s direction and wrapping behavior in one declaration.
How it connects
Connects flex-direction, flex-wrap, flex items, flex containers, and flex-shrink.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of CSS in Depth, Second Edition. The section links point to the parts of the book it draws on.