H
grid-area
Exanpuie 3-1
A
B
C
F
content { display: grid; grid-gap:3px; grid: "H H B" 150px "A C B" "F F F" 80px /* rows area height */ / 1fr auto 1fr; /* columns_width */ } #h { grid-area: H; } #f { grid-area: F; } #a { grid-area: A; } #b { grid-area: B; } #c { grid-area: C; }
Publication as a Candidate Recommendation does not imply endorsement by the W3C Membership.
It is inappropriate to cite this document as other than work in progress.
This is a draft document and may be updated, replaced or obsoleted by other documents at any time.
content { display: grid; grid-gap:3px; grid: auto 1fr/ repeat(2, 1fr 1fr); /* rows / columns */ }
The following declares a grid with as many rows of at least 5em as will fit in the height of the grid container (100vh).
Publication as a Candidate
The tracks (rows and columns) of the grid are declared and sized either explicitly through the explicit
he tracks (rows and columns) of the grid are declared and sized either explicitly through the explicit grid properties or are implicitly created when items are placed outside the explicit grid.
content { display: grid; grid-gap: 3px; grid: auto-flow 1fr / repeat(auto-fill, minmax(300px, 1fr)); /* rows / columns */ }