Color & CSS

Runs 100% locally in your browser

CSS Grid Generator

Interactive visual CSS Grid layout builder with column/row spans, responsive breakpoints, and Tailwind export.

Grid tracks & gaps

Column track sizing

Mobile-first single column

Emit grid-cols-1 below the selected breakpoint.

Selected item

Column span

2 / 3

Row span

1 / 2

Interactive grid preview

Select any cell to adjust its label, column span, or row span.

Generated CSS

.grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 16px;
}

@media (min-width: 768px) {
  .grid-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .grid-item-1 {
    grid-column: span 2 / span 2;
  }

  .grid-item-2 {
    grid-row: span 2 / span 2;
  }
}

Semantic HTML

<section class="grid-layout">
  <div class="grid-item grid-item-1">Hero</div>
  <div class="grid-item grid-item-2">Sidebar</div>
  <div class="grid-item">Feature A</div>
  <div class="grid-item">Feature B</div>
</section>

How to build responsive CSS Grid and Tailwind layouts

Configuring CSS Grid columns, rows, gaps, and spanning cells

Set column count, row count, column and row gaps, and track definitions (equal 1fr tracks or custom templates like 240px 1fr 1fr). Select any cell in the interactive grid preview to adjust its column span or row span and copy the updated CSS.

Exporting standard CSS or Tailwind CSS grid utilities

Toggle between plain CSS rules and Tailwind grid utility classes, enable a mobile-first single-column responsive breakpoint, or send the generated HTML straight into the HTML Formatter.

CSS Grid frequently asked questions

What does repeat(3, minmax(0, 1fr)) mean in CSS Grid?
Using minmax(0, 1fr) instead of plain 1fr allows grid tracks to shrink below long unbreakable content like code blocks or URLs without causing horizontal page overflow.
Can I create bento items that span multiple columns or rows?
Yes. Select any grid item in the workspace to increase or decrease its column span and row span, or add and remove items.
Does the CSS Grid generator output mobile-safe responsive CSS?
Yes. Enable the responsive single-column breakpoint toggle to emit a mobile-first single-column base grid that expands at your chosen viewport width.

Related tools

More browser utilities that run locally with zero uploads.

All tools

Instant AI

Launching a site with these assets?

Find a clean domain name and connect AI agents through Instant AI to research availability and launch faster.

Explore Instant