Build CSS Grid layouts visually - set rows, columns, gap, click cells to highlight areas, and copy the CSS.
fr (fraction unit) distributes available space. grid-template-columns: 1fr 2fr 1fr creates three columns where the middle gets twice as much space as each side column. repeat(3, 1fr) is shorthand for three equal-width columns.grid-column: 1 / span 2 means "start at column line 1 and span 2 columns". grid-column: 2 / 4 means "from line 2 to line 4" (covers 2 columns). Grid lines are numbered from 1; negative numbers count from the end (−1 is the last line).We add new tools every week based on what you ask for. Suggest one - it takes 30 seconds.
We use cookies to enhance your experience. By continuing you agree to our Cookie Policy.