Flexbox Playground - Manipulate Flexbox Visually and Get CSS
Change flex-direction/justify-content/align-items etc. with dropdowns and see results in real time.
8px
5
preview
1
2
3
4
5
cssCode
.container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: stretch;
align-content: flex-start;
gap: 8px;
}
How to Use
- Set flex-direction/justify-content etc. with dropdowns
- Adjust number of child elements
- Real-time preview in right pane
- Copy CSS code
FAQ
- Which Flexbox properties can be controlled?
- flex-direction, justify-content, align-items, flex-wrap, gap, and other major properties.
- Can the number of child elements be changed?
- Yes. You can add and remove child elements.
- Can the generated CSS be used as-is?
- Yes. Copy the code and paste it directly into your CSS file.
- Is my data sent to a server?
- All processing happens in the browser. No data is sent to a server.
- How do flex-wrap and flex-direction work together?
- Set the main axis with flex-direction and enable wrapping with flex-wrap to visually explore multi-row or multi-column layouts.
Related Tools
Update History
Last Updated: 2026-02-21
- 2026-02-21 Initial release