CSS & Layout
Flexbox Playground
Change a flex container and its items, watch the live layout update, then copy the finished CSS. Everything runs in your browser — nothing is sent to a server.
Controls
updates liveContainer
Item
Live preview
updates as you changeClick an item in the preview (or use the Item buttons) to edit it.
CSS output
How it works
Every control maps directly to a flex property on the preview. The generated CSS leaves
out values that already match the initial value — for example flex-direction: row,
align-items: stretch or a gap of 0 — so the
copyable output stays minimal. Item overrides are written as .item:nth-child(n)
rules. Nothing is sent to a server; the optional share link stores the setup in the URL
fragment, which stays in your browser.