CSS flex-stroom eigenschap

Definition and usage

The flex-flow property is a shorthand property for the following properties:

Note:If the element is not a flexible item, the flex property is invalid.

See also:

CSS tutorial:CSS flexible box

CSS reference manual:flex property

CSS reference manual:flex-direction property

CSS reference manual:flex-basis property

CSS reference manual:flex-grow property

CSS reference manual:flex-shrink property

CSS reference manual:flex-wrap property

HTML DOM reference manual:flexFlow property

Example

Display flexible items in reverse direction and wrap when needed:

div {
  display: flex;
  flex-flow: row-reverse wrap;
}

Try it yourself

CSS syntax

flex-flow: flex-direction flex-wrap|initial|inherit;

Attribute value

Value Description
flex-direction

Possible values:

  • row
  • row-reverse
  • column
  • column-reverse
  • initial
  • inherit

The default value is "row".

Specify the direction of the flexible items.

flex-wrap

Possible values:

  • nowrap
  • wrap
  • wrap-reverse
  • initial
  • inherit

The default value is "nowrap".

Specify whether the flexible item should wrap.

initial Sets this property to its default value. See initial.
inherit Inherits this property from its parent element. See inherit.

Technical details

Default value: row nowrap
Inheritance: No
Animation creation: Not supported. See:Animation-related properties.
Versie: CSS3
JavaScript syntax: object.style.flexFlow="column nowrap"

Browserondersteuning

De nummers in de tabel vermelden de eerste browserversie die de eigenschap volledig ondersteunt.

Volg de nummerering van de eerste versie die de prefixen -webkit-, -ms- of -moz- gebruikt.

Chrome IE / Edge Firefox Safari Opera
29.0
21.0 -webkit-
11.0 28.0
18.0 -moz-
9.0
6.1 -webkit-
17.0