CSS Grid & Flexbox Live Layout Playground
Adjust sliders, watch the layout update, copy the CSS.
Controls
Every change updates the preview instantly.
Live preview
Generated CSS
Copy this straight into your stylesheet.
.container {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: stretch;
flex-wrap: nowrap;
gap: 12px;
}About this tool
Switch between Flexbox and Grid, adjust direction, alignment, wrapping, gap, and item count with live sliders and dropdowns, and watch a real layout update instantly — then copy the exact CSS it took to build it.
How to use CSS Grid & Flexbox Live Layout Playground
- 1
Choose Flexbox or Grid at the top.
- 2
Adjust the dropdowns and sliders on the left — direction, alignment, wrapping, gap, and item count.
- 3
Watch the live preview update instantly as colored boxes rearrange.
- 4
Copy the generated CSS and drop it straight into your stylesheet.
Frequently asked questions
Related tools
JSON Tree Formatter & Syntax Validator
Turn messy or broken JSON into a clean, color-coded tree.
WCAG Typography Readability Checker
Check if your text and background actually pass accessibility standards.
Vector SVG to Data URI Code Converter
Drop an SVG, get inline-ready data URI code instantly.