Who this helps
- Developers building card lists
- Designers comparing two-dimensional layouts
Developer Layout Utility
Test columns, rows, gap, minmax, auto-fit, and alignment options in real time, then generate CSS Grid code instantly.
Set the columns, rows, spacing, alignment, and item count for your Grid container.
Choose between a regular repeat layout, responsive auto-fit layout, or custom template mode.
Used in auto-fit minmax mode.
Used in custom template mode. Examples: 240px 1fr 1fr, minmax(180px, 1fr) 2fr
CSS code based on the current Grid settings.
Change the Grid settings, then click the Generate CSS Code button.
Choose repeat, auto-fit, or custom template depending on your layout goal.
Repeat Columns
Repeat Columns
Repeat Columns
Generate fixed-column, auto-fit or custom CSS Grid layouts. Compare spacing and alignment in the preview, then test the CSS with real text and images.
Select fixed columns, auto-fit or custom columns.
Set column count or minimum card width.
Adjust row height, gaps, padding and alignment.
Use the preview to compare the layout at different widths.
Generate CSS, apply the container and item classes and test actual content.
Below the minimum width plus padding, additional responsive rules may be needed.
The flexible track can shrink, but the fixed sidebar still needs a mobile strategy.
The tool builds grid-template-columns from the mode and exports row sizing, gaps, alignment, padding and radius. Custom columns are limited to 200 characters, reject declaration delimiters and are checked with CSS.supports when available.
Layout values and custom CSS tracks are processed locally.
Center an empty-state component.
Style a card over a patterned background.
No. A minimum track wider than its container can still overflow. Test padding and real content.
Use a grid-template-columns value, not a complete declaration or stylesheet.
Fixed mode generates explicit rows; additional items use the configured grid-auto-rows height.