Build grid layouts visually — set columns, rows, merge cells into named areas, control alignment, and get instant CSS, HTML, or Tailwind code.
Note: Complex layouts with named areas or custom track sizes require Tailwind arbitrary values or @apply + custom config.
fr unit (fractional unit) represents a fraction of the available free space in the grid container. For example, grid-template-columns: 1fr 2fr creates two columns where the second is twice as wide as the first. Using 1fr 1fr 1fr creates three equal columns. It's the most flexible sizing unit in CSS Grid.grid-template-areas property. You name areas like 'header', 'sidebar', 'main', 'footer' and then place items using grid-area: header. This makes layouts more readable and easier to change without updating every item's position.minmax(min, max) defines a size range for a grid track. The track will be at least 'min' but no larger than 'max'. For example, minmax(200px, 1fr) creates a column that's at least 200px wide but expands to fill available space. It's commonly used with repeat() and auto-fill/auto-fit to create responsive grids without media queries.grid-auto-flow controls how the auto-placement algorithm fills in the grid. 'row' (default) places items by filling each row before moving to the next. 'column' fills each column first. 'dense' attempts to fill holes in the grid by placing smaller items in gaps left by larger items — useful for masonry-like layouts.