Tested tool guide
Tested browser tools
Checked August 16, 2026
What CSS Flexbox Generator does, with a checked example
Flex layout depends on two axes whose meaning changes with flex-direction. This generator lets you adjust container controls such as direction, wrapping, justification, and alignment, then inspect the resulting layout and CSS. Item controls let you explore how individual flex children participate in that container. The common surprise is that justify-content does not always mean horizontal alignment: it operates on the main axis, while alignment properties generally operate on the cross axis. Changing from row to column therefore changes what those controls do visually.
Worked example
A concrete input and expected output from the current implementation.
Input
direction: row; wrap: nowrap; justify: space-between; align-items: center
->
Expected output
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
The items form one horizontal flex line. Free space on the main axis is placed between the items, while each item is centered on the vertical cross axis.