Technology· Tools for builders
Design a CSS grid from column and row track sizes and gaps, see a proportional preview and copy the CSS or Tailwind classes.
Formula
Fixed tracks (px, %) take their size first; the remaining space after gaps is shared among fr tracks in proportion to their fr values (CSS Grid Level 1)
Worked example
Columns 200px 1fr 1fr in 640 px with 16 px gaps gives 200, 204 and 204 px columns.
Free to use with a link back. Nothing you type is shared.
Preparing citation…
Keep exploring
Generate a fluid CSS clamp() value that scales between two screen widths.
Open calculatorReduce image or screen dimensions to their simplest whole-number ratio.
Open calculatorConvert colours between HEX, RGB and HSL, with WCAG contrast against white and black.
Open calculatorUse fr, px, %, rem, auto, minmax(…) and repeat(n, …). Up to 24 tracks each way.
.grid {
display: grid;
grid-template-columns: 200px 1fr 1fr;
grid-template-rows: 80px 1fr 60px;
gap: 16px;
}Tailwind output appears when every track is 1fr (rows 1fr or auto) and gaps are multiples of 4 px.