Skip to content
Home
Dev Convert Generate Finance Calc Design Security Media

More categories

Productivity 23 Network Tools 18 Text Tools 16 SEO Tools 15 Education Tools 14 PDF Tools 10 Mockups 5

Learn and build

GuidesBlogAPI & MCPCheatsheetsChangelog All categories

Browse

415 tools · 15 categories

Start here

Popular tools New this week 29 All tools 415

Categories

Developer Tools 93 Converters 52 Calculators 32 Finance Tools 32 Generators 31 Design Tools 25 Media Tools 25 Security Tools 24 Productivity 23 Network Tools 18 Text Tools 16 SEO Tools 15 Education Tools 14 PDF Tools 10 Mockups 5

Learn and build

Guides Cheatsheets Blog REST API MCP server Changelog

No matches here.

Keep FindUtils free Sponsors fund new tools
  1. Cheatsheets
Guides Blog API & MCP
Sponsor
FindUtils
Sponsor
  1. Home
  2. Cheatsheets
  3. Web Development
  4. CSS Grid

Web Development · Cheatsheet

CSS Grid Cheatsheet

Grid container and item properties, template areas, auto-placement, and responsive grids

36 commands 7 sections

On this sheet

Container Properties 8 Template Areas 3 Gap & Alignment 7 Item Placement 6 Item Self-Alignment 5 Sizing Functions 6 Sources 1
Try it in the browser Create custom CSS animations with a visual keyframe timeline editor. Design, preview, and export as CSS, Tailwind, React, or Framer Motion code. Open CSS Animation Generator

No entry matches that filter.

Container Properties

  • display: grid Enable grid layout on container
  • display: inline-grid Inline-level grid container
  • grid-template-columns: 1fr 2fr 1fr Define column sizes (fractional)
  • grid-template-columns: repeat(3, 1fr) Repeat: 3 equal columns
  • grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) Responsive auto-fill columns
  • grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) Auto-fit (stretch to fill)
  • grid-template-rows: 100px auto 1fr Define row sizes
  • grid-auto-rows: minmax(100px, auto) Default height for implicit rows

Template Areas

  • grid-template-areas: "header header" "sidebar main" "footer footer" Define named areas
  • grid-area: header Place item in named area
  • grid-area: . (dot) Empty cell in template

Gap & Alignment

  • gap: 16px Equal row and column gap
  • gap: 16px 24px Row gap, column gap
  • justify-items: start | center | end | stretch Align items along row axis
  • align-items: start | center | end | stretch Align items along column axis
  • place-items: center Shorthand for align-items + justify-items
  • justify-content: center | space-between Align grid within container (row)
  • align-content: center | space-between Align grid within container (column)

Item Placement

  • grid-column: 1 / 3 Span from column line 1 to 3
  • grid-column: 1 / -1 Span full width
  • grid-column: span 2 Span 2 columns from auto position
  • grid-row: 1 / 3 Span from row line 1 to 3
  • grid-row: span 2 Span 2 rows
  • grid-area: 1 / 1 / 3 / 3 Shorthand: row-start / col-start / row-end / col-end

Item Self-Alignment

  • justify-self: start | center | end | stretch Align item along row axis
  • align-self: start | center | end | stretch Align item along column axis
  • place-self: center Shorthand for align-self + justify-self
  • order: -1 Change visual order
  • z-index: 1 Stack order for overlapping items

Sizing Functions

  • 1fr One fraction of available space
  • minmax(200px, 1fr) Min 200px, max 1fr
  • min-content Size to minimum content width
  • max-content Size to maximum content width
  • fit-content(300px) Like max-content but capped at 300px
  • auto Size based on content and available space

Sources

  • https://www.w3.org/TR/css-grid-2/ W3C Grid specification: tracks, areas, placement, and alignment.

Related cheatsheets

  • React Hooks53 commands
  • CSS Flexbox36 commands
  • HTTP Status Codes41 commands

Guides that use these commands

  • How to Extract a Color Palette From an ImageGuide · 6 min read
  • How to Build a Custom CSS Easing CurveGuide · 6 min read
  • How to Use CSS Border Radius ProperlyGuide · 6 min read

Tools for this work

  • CSS Animation GeneratorCreate custom CSS animations with a visual keyframe timeline editor. Design, preview, and export as CSS, Tailwind, React, or Framer Motion code.
  • CSS MinifierMinify or beautify CSS code for production.

From FindUtils

More to explore

Products and services from the team behind FindUtils.

Promote your tool
Featured product seeranks.com SeeRanks — transparent product discovery A public ranking board where paid placement is always labeled and every product keeps its earned position. View SeeRanks Public rank board #1 Sponsored #2 #3 #4 Paid placement is always labeled Free favicon tool emojifavicons.com Emoji Favicons Turn any emoji into a favicon with one HTML line. SVG, PNG or ICO, no sign-up. <link rel="icon" href=".../🦊.svg"> Create a favicon
FindUtils service findutils.com Articles for software tools A sourced article for your channels, or a sponsored FindUtils publication with editorial review. Compare packages Domain portfolio findutils.com Domain names for sale .com.dev.sh.app.io Unused names across dev tools, AI, PDF and commerce. Make an offer. Browse the list Playable ranking towerscore.io TowerScore — stack the skyline Play to climb, or buy a floor. Paid floors are labeled. Open TowerScore

Missing a tool you need?

Tell us what to build next. Most requests ship as a free browser tool, an API endpoint and an MCP tool.

Request a tool
FindUtils

Free, fast utilities that respect your data. Most tools process your files in the browser, so they never leave your device.

  • No sign-up for free tools
  • Most tools run in your browser
  • 358 tools callable over REST or MCP

Tools

DevelopersConvertPDFDesignSecurityAll tools →

Learn

GuidesBlogCheatsheetsChangelog

Build

REST APIMCP serverAPI referenceWorkflowsStatus

FindUtils

AboutLibraries we useSponsorRequest a toolDomains for saleContact
© 2026 FindUtils PrivacyTermsSitemap
Service status
FindUtils

Free, fast utilities that respect your data. Most tools run in your browser.

Build with it

REST APIMCP serverGuidesChangelog

FindUtils

AboutSponsorPrivacyContact
Theme
© 2026 FindUtils Terms
FindUtils
Guides Blog REST API MCP server Changelog

Categories

Developers 93 Convert 52 Calculate 32 Finance 32 Generate 31 Design 25
All 15 categories →

Keep it free

Sponsorship keeps every tool free and funds the new ones we ship each week.

Sponsor Back the project
Tools API Sponsor