Who this helps
- Developers learning Flexbox alignment
- Designers arranging toolbars or card rows
Developer Layout Utility
Test justify-content, align-items, flex-direction, flex-wrap, gap, and align-content in real time, then generate CSS code instantly.
Configure the direction, alignment, wrapping, spacing, and item size of a Flex container.
CSS code generated from the current Flexbox settings.
Change the Flexbox settings and click the Generate CSS Code button.
Once you understand direction and axis concepts, Flexbox becomes useful for button groups, card lists, and navigation layouts.
Controls alignment along the main axis. In row direction it controls horizontal alignment, and in column direction it controls vertical alignment.
Controls alignment along the cross axis. Items can be placed at the start, center, end, or stretched.
Controls the alignment of multiple flex lines when flex-wrap creates more than one line.
Explore direction, alignment, wrapping and spacing in a live Flexbox preview. Export both container rules and the sample item dimensions.
Choose the main-axis direction.
Set justify-content for main-axis free space.
Set align-items for alignment within a line.
Enable wrapping and compare align-content when multiple lines exist.
Adjust item sizes and export CSS, then test DOM order and long translations.
The container's minimum height makes vertical alignment visible.
Actual wrapping also depends on item width, flex shrinking and content.
Selected values are applied to the preview and exported as container CSS. Width, height and border radius are also exported for .flex-item. Item count changes only the demonstration.
Settings stay in the browser and are not uploaded to win-j.
Build a responsive card collection.
Fade an element into view once.
With nowrap there is only one line. Try wrapping, more items and additional cross-axis space.
No. The output includes width, height and radius; adapt them to your component.
Use the layout system that fits the content. Grid can be more convenient for coordinated rows and columns.