Flexbox
Align and control your layouts with incredible precision.
-
Flex parents and children -
Flex parent settings -
Flex child settings
Flex parents and children
-
Select the element (e.g., div) on the canvas -
Click on Flex under Layout in the styling panel .
Elements set to flexbox won’t affect the layout of the children within their direct child elements.
Flex parent settings
-
Direction -
Alignment -
Gap -
Wrap -
Padding
Set or reverse the direction
If you reverse the direction of your flex parent, the position of flex children in the document order doesn’t change.
Column layout
Column layout - Switched
Row layout
Row layout - Switched
Mind the gap
To wrap or not to wrap
-
nowrap -
wrap -
wrap-reverse
-
Left to right -
Right to left -
Top to bottom -
Bottom to top
Alignment
You can double-click on the alignment box to shrink or grow content.
Row layout direction
Column layout direction
Padding
-
Inner horizontal padding (Add space between the top and bottom of elements) -
Inner vertical padding (Add space between the left and right of elements) -
Individual control (Add space between each of the four sides)
Flex child settings
-
Size -
Alignment -
Spacing -
Order
Making children "flex"
-
Flex -
Shrink -
Grow child -
None
Flex
Shrink
Grow
None
Customize grow and shrink behavior.
Alignment of flex children.
Spacing
This is also the place where you can set the z-index. The z-index property sets the z-order of an element and its descendants or flex and grid items. Overlapping elements with a larger z-index cover those with a smaller one. A z-index value of 1 will sit on top of one with 0, and an element with 10 will sit on top of both 0 and 1.
How to order flex children