Tools · CSS · Flexbox playground
Flexbox playground
Build a CSS flexbox layout - direction, wrap, justify, align, gap, and per-item grow/shrink/basis - with a live preview, and copy the code.
Runs fully in your browser. Nothing is uploaded.
Your file is ready.
Try a different file, or try again.
How it works
Pick a preset, or start from the default row of items.
Adjust the container controls, then select an item to tune its own grow, shrink, and basis.
Copy the generated CSS.
Frequently asked questions
No. The layout and the generated CSS are built entirely in your browser.
Only values that differ from the CSS defaults are written out, the same as a developer would type by hand - an untouched item adds nothing to the output.
It only affects a wrapped, multi-line container. Turn Wrap on to see it take effect.
Yes, and that's correct. flex-direction: row already reverses under RTL with no extra code - this tool shows real flexbox behavior, not a left-to-right approximation.
Comments