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.

Drop a file here, or choose one.

Runs fully in your browser. Nothing is uploaded.

How it works

  1. Pick a preset, or start from the default row of items.

  2. Adjust the container controls, then select an item to tune its own grow, shrink, and basis.

  3. 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

  1. No comments yet. Be the first to share your experience.
Your rating (optional)

No rating selected