CSS Flexbox Generator
Visually build CSS flexbox layouts with live preview and instant code output.
Container
Items (3/8)
1
grow:0 shrink:1 basis:auto
2
grow:0 shrink:1 basis:auto
3
grow:0 shrink:1 basis:auto
Live Preview
Click an item to edit its properties1
2
3
Generated CSS
Container CSS
/* Container */
.flex-container {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: stretch;
align-content: stretch;
gap: 8px;
}Item CSS
/* Select an item to see its CSS */
Full CSS (all items)
/* Container */
.flex-container {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: stretch;
align-content: stretch;
gap: 8px;
}
/* Item 1 */
.flex-item-1 {
flex-grow: 0;
flex-shrink: 1;
flex-basis: auto;
align-self: auto;
order: 0;
}
/* Item 2 */
.flex-item-2 {
flex-grow: 0;
flex-shrink: 1;
flex-basis: auto;
align-self: auto;
order: 0;
}
/* Item 3 */
.flex-item-3 {
flex-grow: 0;
flex-shrink: 1;
flex-basis: auto;
align-self: auto;
order: 0;
}How to use
- • Adjust container properties in the left panel — the preview updates instantly
- • Click + Add Item to add flex items (max 8)
- • Click any item in the list or preview to edit its individual properties
- • Click ✕ on an item to remove it
- • Copy the generated CSS and paste it into your project