This page is In Progress

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

flex-flow

Summary

The flex-flow CSS property defines the flex container’s main and cross axis. It is a shorthand property for the flex-direction and flex-wrap properties.

Overview table

Initial value
See individual properties.
Applies to
flex containers
Inherited
No
Media
visual
Computed value
See individual properties.
Animatable
No
CSS Object Model Property
flexFlow

Syntax

  • flex-flow: <flex-direction> <flex-wrap>

Values

<flex-direction> <flex-wrap>
The shorthand value includes the values of the following properties:

Examples

Displaying children in a row wrapping to the next line.

.list {
  display: flex;
  flex-flow: row wrap;
}

.list div {
  flex: 1;
}

View live example

The Holy Grail Layout example.

flex-flow: row;

View live example

Related specifications

CSS Flexible Box Layout Module
Candidate Recommendation

See also

Related articles

Flexbox

External resources

Also, check out the following live demo sites: