CSS Flexbox Generator
Direction, justify/align/content, wrap, separate row/column gap, adjustable item count, and per-item flex-grow/shrink/basis/align-self/order (click an item to edit it) -- with presets, randomize, and export to CSS, Tailwind, SCSS or React.
What this tool does
Builds a flex container AND lets each item inside it be edited
individually — most flexbox generators only cover container
properties, leaving per-item flex-grow/
flex-shrink/flex-basis to be written by
hand.
Container controls
Direction (including both reverse variants), justify-content, align-items, align-content for multi-line wrapping, flex-wrap, and row/column gap set independently — covering the full set of flex container properties in one place.
Per-item editing
Click any item directly in the live preview to select it, then
adjust its flex-grow, flex-shrink,
flex-basis (any valid value — auto,
0, 120px, 30%),
align-self, and order without affecting
any other item. Items can be added or removed (up to 10) to test
a layout with a different item count.
Presets and randomizing
Seven presets cover common patterns — a default row, everything
centered, a space-between nav bar, wrapping cards, a column
stack, a reversed row, and equal-width columns via
flex-grow: 1 on every item — plus a randomize button
for quick exploration.
Getting the CSS out
Export the container and every item's overrides as plain CSS (one rule per item), a Tailwind class string, SCSS, or a React style object — copyable with one click.
Privacy
Everything runs locally in your browser -- nothing you build is sent to a server.