fr unit
A CSS Grid unit meaning one share of the space left after fixed-size tracks and gaps have been taken out.
In more detail
Fixed tracks and gaps are subtracted first, then the rest is divided by the total number of fr. grid-template-columns: 200px 1fr 2fr gives the first column 200px and splits the rest one part to two parts.
Related terms
- CSS Grid — A CSS layout mode that places a container's children into rows and columns.
- grid track — One row or one column of a CSS grid, the space between two neighbouring grid lines.
- minmax() — A CSS Grid function that lets a track size vary between a minimum and a maximum, such as minmax(280px, 1fr).
Taught in
- Advanced CSS Grid: Named Areas, minmax And auto-fit — Frontend Architecture & Web Platform