@@ -228,26 +228,6 @@ Declaring the Grid</h3>
228228 </ul>
229229 </div>
230230
231- The resulting grid is <a href="#grid-align">aligned</a> within the <a>grid container</a>
232- by means of the 'align-content' and 'justify-content' properties.
233- [[#alignment]]
234-
235- <div class="example">
236- The following example justifies all columns
237- by distributing any extra space among them,
238- and centers the grid in the <a>grid container</a>
239- when it is smaller than 100vh.
240-
241- <pre>
242- main {
243- grid: auto-flow 1fr / repeat(auto-fill, 5em);
244- min-height: 100vh;
245- justify-content: space-between;
246- align-content: safe center;
247- }
248- </pre>
249- </div>
250-
251231<h3 id="overview-placement">
252232Placing Items</h3>
253233
@@ -297,8 +277,27 @@ Sizing the Grid</h3>
297277 Once the <a>grid items</a> have been <a href="#placement">placed</a> ,
298278 the sizes of the <a>grid tracks</a> (rows and columns) are calculated,
299279 accounting for the sizes of their contents and/or available space as specified in the grid definition.
300- The sized grid is then aligned within its <a>grid container</a>
280+
281+ The resulting sized grid is <a href="#grid-align">aligned</a> within the <a>grid container</a>
301282 according to the <a>grid container</a> ’s 'align-content' and 'justify-content' properties.
283+ [[#alignment]]
284+
285+ <div class="example">
286+ The following example justifies all columns
287+ by distributing any extra space among them,
288+ and centers the grid in the <a>grid container</a>
289+ when it is smaller than 100vh.
290+
291+ <pre>
292+ main {
293+ grid: auto-flow 1fr / repeat(auto-fill, 5em);
294+ min-height: 100vh;
295+ justify-content: space-between;
296+ align-content: safe center;
297+ }
298+ </pre>
299+ </div>
300+
302301 Finally each <a>grid item</a> is sized and aligned within its assigned <a>grid area</a> ,
303302 as specified by its own sizing and alignment properties.
304303
0 commit comments