flex-flow property

Image Tutorials

Definition and Usage

The CSS flex-flow property is a shorthand property for flex-direction and flex-wrap individual properties.

  • Initialthe concatenation of the initial values of its longhand properties:
    • flex-direction: row
    • flex-wrap: nowrap
  • Applies toflex containers
  • Inheritedno
  • Mediavisual
  • Computed Valueas each of the properties of the shorthand:
    • flex-direction: as specified
    • flex-wrap: as specified
  • Animatableno
  • Canonical orderorder of appearance in the formal grammar of the values

Syntax

Formal syntax: <'flex-direction'> || <'flex-wrap'>

Values

See flex-direction and flex-wrap for details on the values.


Examples

1 element {
2   /* Main-axis is the block direction with reversed main-start and main-end. Flex items are laid out in multiple lines */
3   flex-flow: column-reverse wrap;
4 }

Compatibility

Desktop browsers

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support Not supported 21.0-webkit Not supported 12.10 Not supported

Mobile browsers

Feature Firefox Mobile (Gecko) Android IE Phone Opera Mobile Safari Mobile
Basic support Not supported NA Not supported 12.10 Not supported
Rate article