Generate flexbox CSS with a visual editor and live preview
display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; align-content: stretch; gap: 8px;
Free CSS flexbox generator. Visually configure flex containers and items. Adjust direction, wrap, alignment, gap, and more. Copy the CSS instantly.
Flexbox (Flexible Box Layout) is a CSS layout model that makes it easy to align and distribute space among items in a container, even when their sizes are unknown.
justify-content controls how items are distributed along the main axis (horizontally in a row, vertically in a column).
align-items controls how items are aligned along the cross axis (perpendicular to the main axis).
Use wrap when you want items to wrap to a new line when there isn't enough space, rather than overflowing or shrinking.
The gap property sets spacing between flex items without adding margin to the outer edges of the container.
Last updated: January 2025