You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Implicit Grid</a><ulclass=toc><li><ahref=#auto-tracks><spanclass=secno>6.1</span>
123
123
Sizing Auto-generated Rows and Columns: the <spanclass=propertydata-link-type=propdesctitle=grid-auto-rows>grid-auto-rows</span> and <spanclass=propertydata-link-type=propdesctitle=grid-auto-columns>grid-auto-columns</span> properties</a><li><ahref=#grid-auto-flow-property><spanclass=secno>6.2</span>
124
124
Automatic Placement: the <spanclass=propertydata-link-type=propdesctitle=grid-auto-flow>grid-auto-flow</span> property</a><ulclass=toc><li><ahref=#auto-placement-algo><spanclass=secno>6.2.1</span>
Automatic Placement: the <spanclass=propertydata-link-type=propdesctitle=grid-auto-position>grid-auto-position</span> property</a><li><ahref=#implicit-grid-shorthand><spanclass=secno>6.4</span>
126
127
Implicit Grid Shorthand: the <spanclass=propertydata-link-type=propdesctitle=grid-auto>grid-auto</span> property</a></ul><li><ahref=#placement><spanclass=secno>7</span>
Line-based Placement: the <spanclass=propertydata-link-type=propdesctitle=grid-row-start>grid-row-start</span>, <spanclass=propertydata-link-type=propdesctitle=grid-column-start>grid-column-start</span>, <spanclass=propertydata-link-type=propdesctitle=grid-row-end>grid-row-end</span>, and <spanclass=propertydata-link-type=propdesctitle=grid-column-end>grid-column-end</span> properties</a><li><ahref=#placement-shorthands><spanclass=secno>7.2</span>
<ahref=#grid-item>Grid items</a> that aren't explicitly placed are are automatically placed into an unoccupied space in the <ahref=#grid-container>grid container</a>.
1426
+
<ahref=#grid-item>Grid items</a> that aren't explicitly placed are automatically placed into an unoccupied space in the <ahref=#grid-container>grid container</a>.
1426
1427
The <aclass=propertydata-link-type=propdeschref=#propdef-grid-auto-flowtitle=grid-auto-flow>grid-auto-flow</a> property controls the direction in which the search for unoccupied space takes place,
1427
1428
and whether rows or columns are added as needed to accommodate the content.
auto-placed <ahref=#grid-item>grid items</a> are simply positioned according to the <aclass=propertydata-link-type=propdesctitle=grid-auto-position>grid-auto-position</a> property.
1434
+
auto-placed <ahref=#grid-item>grid items</a> are simply positioned according to the <aclass=propertydata-link-type=propdeschref=#propdef-grid-auto-positiontitle=grid-auto-position>grid-auto-position</a> property.
Automatic Placement: the <aclass=propertydata-link-type=propdeschref=#propdef-grid-auto-positiontitle=grid-auto-position>grid-auto-position</a> property</span><aclass=section-linkhref=#grid-auto-position-property>§</a></h3>
<p> If a <ahref=#grid-container>grid container</a> doesn't specify an automatic-placement strategy through <aclass=propertydata-link-type=propdeschref=#propdef-grid-auto-flowtitle=grid-auto-flow>grid-auto-flow</a>,
1612
+
any grid items with an <ahref=#automatic0>automatic grid position</a> are instead all placed at the default position
1613
+
specified by <aclass=propertydata-link-type=propdeschref=#propdef-grid-auto-positiontitle=grid-auto-position>grid-auto-position</a>.
1614
+
1615
+
<p> Interpret the two <aclass=productiondata-link-type=typehref=#typedef-grid-line><grid-line></a>s as if they were specified in <aclass=propertydata-link-type=propdeschref=#propdef-grid-column-starttitle=grid-column-start>grid-column-start</a> and <aclass=propertydata-link-type=propdeschref=#propdef-grid-row-starttitle=grid-row-start>grid-row-start</a>, respectively,
1616
+
of a hypothetical <ahref=#grid-item>grid item</a>,
1617
+
treating <aclass=cssdata-link-type=maybehref=#valuedef-auto>auto</a> as <spanclass=cssdata-link-type=maybe>1</span> for this purpose.
1618
+
The resulting lines of the <ahref=#grid-container>grid container</a>
1619
+
become a <ahref=#definite0>definite grid position</a> in both axises
1620
+
for the auto-placed <ahref=#grid-item>grid items</a>.
<tr><thscope=row><adata-property="">grid-row-start</a><td><aclass=productiondata-link-type=typehref=#typedef-grid-line><grid-line></a><td>auto<td><td>no<td>n/a<td>visual<td><ahref=#grid-item>grid items</a><td>specified value (almost)<td>
2812
2830
<tr><thscope=row><adata-property="">grid-column-start</a><td><aclass=productiondata-link-type=typehref=#typedef-grid-line><grid-line></a><td>auto<td><td>no<td>n/a<td>visual<td><ahref=#grid-item>grid items</a><td>specified value (almost)<td>
Abstract: This CSS module defines a two-dimensional grid-based layout system, optimized for user interface design. In the grid layout model, the children of a grid container can be positioned into arbitrary slots in a flexible or fixed predefined layout grid.
0 commit comments