List of all FLEXBOX Layout properties

[vc_row][vc_column][vc_column_text]List of all FLEXBOX Layout properties:
==========================================

1. Properties for the Parent (flex container)

a. display: flex | inline-flex ;

b. flex-direction: row | row-reverse | column | column-reverse ;
i. row (default): left to right in ltr; right to left in rtl
ii. row-reverse: right to left in ltr; left to right in rtl
iii. column: same as row but top to bottom
iv. column-reverse: same as row-reverse but bottom to top

c. flex-wrap: nowrap | wrap | wrap-reverse;
i. nowrap (default): all flex items will be on one line
ii. wrap: flex items will wrap onto multiple lines, from top to bottom.
iii. wrap-reverse: flex items will wrap onto multiple lines from bottom to top.

d. flex-flow: <‘flex-direction’> || <‘flex-wrap’>

e. justify-content: flex-start | flex-end | center | space-between | space-around |space-evenly;
i. flex-start (default): items are packed toward the start line
ii. flex-end: items are packed toward to end line
iii. center: items are centered along the line
iv. space-between: items are evenly distributed in the line; first item is on the start line, last item on the end line
v. space-around: items are evenly distributed in the line with equal space around them. Note that visually the spaces aren’t equal, since all the items have equal space on both sides. The first item will have one unit of space against the container edge, but two units of space between the next item because that next item has its own spacing that applies.
vi. space-evenly: items are distributed so that the spacing between any two items (and the space to the edges) is equal.

f. align-items: flex-start | flex-end | center | baseline | stretch;
i. flex-start: cross-start margin edge of the items is placed on the cross-start line
ii. flex-end: cross-end margin edge of the items is placed on the cross-end line
iii. center: items are centered in the cross-axis
iv. baseline: items are aligned such as their baselines align
v. stretch (default): stretch to fill the container (still respect min-width/max-width)

g. align-content: flex-start | flex-end | center | space-between | space-around | stretch;
i. flex-start: lines packed to the start of the container
ii. flex-end: lines packed to the end of the container
iii. center: lines packed to the center of the container
iv. space-between: lines evenly distributed; the first line is at the start of the container while the last one is at the end
v. space-around: lines evenly distributed with equal space around each line
vi. stretch (default): lines stretch to take up the remaining space

2. Properties for the Children (flex items)

a. order: <integer>; /* default is 0 */

b. flex-grow: <number>; /* default 0 */

c. flex-shrink: <number>; /* default 1 */

d. flex-basis: <length> | auto; /* default auto */

e. flex: none | [ <‘flex-grow’> <‘flex-shrink’>? || <‘flex-basis’> ]

f. align-self: auto | flex-start | flex-end | center | baseline | stretch;[/vc_column_text][/vc_column][/vc_row]

2 thoughts on “List of all FLEXBOX Layout properties

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *

Available for work