Aligning the stars...
CT

CSS Grid Generator

Visual CSS grid layout builder with responsive grid code generation

How to use this tool:

  • Adjust columns, rows and gap to define your grid structure
  • Click on any cell to select it and modify its span properties
  • Choose different templates to control how grid tracks are sized
  • Enable responsive mode to generate media queries for mobile layouts
  • Copy the generated CSS code to use in your project
3
3
10px

Controls how column widths are calculated

Controls how row heights are calculated

Add media queries

Generates mobile-friendly layouts

Grid Preview

1
2
3
4
5
6
7
8
9

Generated CSS

This is the CSS code you can use to create your grid layout:

  • Apply the .grid-container class to your grid container element
  • The media queries will automatically adjust your layout on smaller screens
.grid-container {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

/* Responsive styles */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

© 2025 Constellation Networks

v1.0.0-1743140205 | Hosted on the swarm (⌐■_■)