.container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: auto auto;
gap: 12px;
grid-auto-flow: row;
}How It Works
Set Grid Dimensions
Choose the number of columns and rows, or type custom template values like "1fr 2fr auto".
Adjust Gap and Flow
Set the gap between cells and choose the auto-flow direction.
Copy CSS
Copy the generated CSS grid properties to use in your project.
Frequently Asked Questions
What is CSS Grid?
What does grid-template-columns do?
What is the fr unit?
What is grid-auto-flow?
Can I combine Grid and Flexbox?
About Grid Gen
What this tool does
Developer and design tools include CSS generators (gradients, shadows, glassmorphism), code playgrounds, color pickers, responsive previews, and reference charts for HTML tags, HTTP methods, and keyboard shortcuts.
Why use this tool
Front-end development involves constant context switching between code and visual output. Having generators and references in a single browser tab speeds up prototyping and reduces the need to search through documentation sites.
How it works
Each tool provides an interactive UI: you tweak parameters (colors, radii, durations), and the tool generates the corresponding CSS, HTML, or SVG code in real time. Copy the snippet directly into your project.
Pro tip
Use the CSS variable output option when available. It makes your generated code theme-friendly and easier to maintain across a design system.
Explore More
Love this tool? Explore 12467+ more
Free online tools for images, PDFs, text, code, and more. All running in your browser.
Explore All Tools