Flexbox Playground
v1.0The Flexbox Playground teaches flexbox as much as it generates it. Each container property (direction, wrap, justify-content, align-items, align-content, gap) has a toggle group with a one-line hint.
The icons follow the direction, so in a column layout justify-content shows vertical icons and align-items shows horizontal ones. Align-content is disabled, with an explanation, until the container wraps. Help popovers cover the trickier properties. One-click recipes (centered card, navbar, sticky footer, equal columns, tag cloud) drop in a working pattern with an explanation.
Every item in the preview is editable: grow, shrink, basis, align-self and order, plus a content-length control that swaps the placeholder between a number, a word and a sentence. Click a box to select it, or drag it to a new position. Dragging changes the source order, not the CSS order property, and a "position N of M" flag shows where it will land. From the keyboard, focus a box and hold Alt with an arrow key. A "varied sizes" switch gives each box a different size, and "show lines" tints each wrapped flex line.
The output has CSS, HTML and Tailwind tabs that you can copy or download. Only values that differ from the flexbox defaults are written, so an untouched container gives just display: flex. Share puts the whole state in a link, and older shared links and saved layouts still load. Everything runs on your device.