HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

flex-flow

Description

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

Syntax

CSS

flex-flow: value;

JS

object.style.flexFlow = "value";

Values

<'flex-flow'> = <'flex-direction'> || <'flex-wrap'>
<'flex-direction'> = column | column-reverse | row | row-reverse

Specifies how flex items are placed in the flex container by setting the direction of the flex container's main axis.

column

The flex container's main axis has the same orientation as the block axis of the current writing mode.

column-reverse

The same as column except the main-start and main-end directions are swapped.

row

The flex container's main axis has the same orientation as the inline axis of the current writing mode.

row-reverse

The same as row except the main-start and main-end directions are swapped.

<'flex-wrap'> = nowrap | wrap | wrap-reverse

Controls whether the flex container is single-line or multi-line and the direction of the cross-axis which determines the direction new lines are stacked in.

nowrap

The flex container is single-line.

wrap

The flex container is multi-line.

wrap-reverse

The same as wrap except the cross-start and cross-end directions are swapped.

Examples

1 · flex-direction · column

2 · flex-direction · column-reverse

3 · flex-direction · row

4 · flex-direction · row-reverse

5 · flex-wrap · nowrap

6 · flex-wrap · wrap

7 · flex-wrap · wrap-reverse

8 · JS