Advertisement
Directionrow
Wrapnowrap
Items5
Gap8px
Build CSS Flexbox container layouts visually. Toggle every container property — flex-direction (4 modes), flex-wrap (3 modes), justify-content (6 options), align-items (5 options), align-content (6 options), gap — and see 1-12 child items rearrange live. Identity values (align-content: normal, gap: 0) are auto-omitted from the output.
5 framework exports + URL hash permalink. No login, no watermark, no paywall. Free and MIT-licensed.
| Property | Description |
|---|---|
flex-direction | Defines the main axis: row (default) | column | row-reverse | column-reverse. |
flex-wrap | Controls whether items wrap to new lines: nowrap | wrap | wrap-reverse. |
justify-content | Aligns items along the main axis: flex-start | center | flex-end | space-between | space-around | space-evenly. |
align-items | Aligns items on the cross axis for a single line: stretch | flex-start | center | flex-end | baseline. |
align-content | Aligns wrapped lines on the cross axis (only applies when flex-wrap is enabled). |
gap | Sets spacing between flex items. Shorthand for row-gap and column-gap. |
display: flex;
display: flex; justify-content: center; align-items: center;
display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px;
flexbox has excellent browser support — safe to use in production without any fallback or prefix (IE 11 has partial support).