Style flexDirection Property
Style flexDirection Property
The flexDirection property is used to either set or return the direction of the flexible items. It will only work if items are flexible.
Syntax:-
Its syntax is:- object.style.flexDirection OR object.style.flexDirection = row|row-reverse|column|column-reverse|initial|inherit
Return:-
Its return is:- string having flex-direction property of an element
Further Explanation:-
Value | Description |
---|---|
row | The flexible items are displayed horizontally. |
row-reverse | Same as row, but in reverse order. |
column | The flexible items are displayed vertically. |
column-reverse | Same as a column, but in reverse order. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |