CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS flex direction Property

CSS flex-direction Property

 

 

The flex-direction property is used to specify the direction of the flexible items. It is only usable if the element is flexible.

 

Default Value:-

 

Its default value is row.

 

Syntax:-

 

Its syntax is:- flex-direction: row | row-reverse | column | column-reverse | initial | inherit;

 

Further Explanation:-

 

Value Description
row The flexible items are displayed horizontally, as a row
row-reverse Same as row, but in reverse order
column The flexible items are displayed vertically, as a column
column-reverse Same as column, but in reverse order
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS