CSS Flexbox Generator
Lay out a row or column, then copy the flexbox CSS.
The preview is the flex container. Each numbered box is a flex item with its own padding, so align-items: stretch and center look different.
Frequently asked questions
Do I still need vendor prefixes?
No. Current browsers understand the unprefixed flex properties this page copies.
What is the difference between justify and align?
Justify-content distributes items along the direction you chose. Align-items lines them up on the cross axis.