The flex-flow
property in
flex-direction
flex-wrap
Note: This property has no effect on non-flexible items.
flex-flow: flex-direction flex-wrap|initial|inherit;
flex-direction
: This value is used to specify the direction of the flex items. Possible values of the flex-direction
are: row
, row-reverse
, column
, and column-reverse
.
flex-wrap
: This value is used to specify whether we want to wrap the flex items or not. Possible values of the flex-wrap
are: wrap
, nowrap
, and wrap-reverse
.
initial
: This sets the value to its default value.
inherit
: This value inherits the property from its parent value.
The basic flex-flow
property is as follows:
In this example, we can see that we made three boxes and set the flex-flow
to row-reverse
in line 8. Therefore, we can see that all the boxes appear in the reverse direction in the output. We can set the flex-flow
of our choice.