Flexbox Playground
v1.2Tune every flex container and item property and watch the layout glide into place. Click an item in the preview to inspect and edit it individually.
Runs locally — nothing leaves your browser.
Building in two dimensions? Try CSS Grid GeneratorThe main axis items are placed along, and which way it runs.
Whether items wrap onto new lines once they run out of room.
How items are spaced along the main axis (horizontal when row, vertical when column).
How items align on the cross axis (vertical when row, horizontal when column).
Only affects wrapped containers — set Wrap above to see it.
The space between adjacent items and wrapped lines.
Overrides align-items for just this one item.
Drag an item to move it (the underlying source order changes, not just its visual order) — or focus it and hold Alt with an arrow key: Left/Up moves it earlier, Right/Down later.
Click any item in the preview (or its number above) to select and edit it · every change is remembered on this device and never leaves the tab.