How to use the CSS Grid Generator
- Set the column and row templates, or switch on responsive auto-fit.
- Adjust gaps and alignment, and click an item to make it span.
- Copy the CSS.
What does this tool do?
CSS grid handles rows and columns at the same time, which makes it the right tool for page layouts, galleries and dashboards. repeat(auto-fit, minmax(200px, 1fr)) creates a responsive grid that adds columns as space allows — no media queries needed.
Why use it?
- Auto-fit responsive grids.
- Spanning items.
- Live preview.
Privacy
Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.
Last reviewed by the M2Toolkit team.