Skip to content

Commit 5bb55a0

Browse files
committed
[css-grid] Fix some small issues in examples
This closes issue w3c#1166.
1 parent 7b56883 commit 5bb55a0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

css-grid/Overview.bs

+8-6
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ Declaring the Grid</h3>
438438
@media print {
439439
main {
440440
grid: auto-flow 1fr / repeat(auto-fill, 5em);
441+
}
441442
}
442443
</pre>
443444
<li>
@@ -490,11 +491,11 @@ Placing Items</h3>
490491

491492
They can further be decomposed into the 'grid-row-start'/'grid-row-end'/'grid-column-start'/'grid-column-end' longhands, e.g.
492493
<pre>
493-
grid-area: a; &rarr;
494-
grid-row-start: a; grid-column-start: a; grid-row-end: a; grid-column-end: a;
494+
grid-area: a;
495+
/* Equivalent to grid-row-start: a; grid-column-start: a; grid-row-end: a; grid-column-end: a; */
495496

496-
grid-area: 1 / 3 / -1; &rarr;
497-
grid-row-start: 1; grid-column-start: 3; grid-row-end: -1; grid-column-end: auto;
497+
grid-area: 1 / 3 / -1;
498+
/* Equivalent to grid-row-start: 1; grid-column-start: 3; grid-row-end: -1; grid-column-end: auto; */
498499
</pre>
499500
</div>
500501

@@ -2507,7 +2508,7 @@ Numeric Indexes and Spans</h4>
25072508
.two {
25082509
grid-row: 2; /* Place item in the second row. */
25092510
grid-column: 3; /* Place item in the third column. */
2510-
/* Equivalent to grid-area: 2 / 3;
2511+
/* Equivalent to grid-area: 2 / 3; */
25112512
}
25122513
</pre>
25132514
</div>
@@ -3379,7 +3380,8 @@ Aligning the Grid: the 'justify-content' and 'align-content' properties</h3>
33793380
<pre>
33803381
.wrapper {
33813382
display: grid;
3382-
&hellip; 4-column / 3-row grid container &hellip;
3383+
/* 3-row / 4-column grid container */
3384+
grid: repeat(3, auto) / repeat(4, auto);
33833385
grid-gap: 10px;
33843386
align-content: space-around;
33853387
justify-content: space-between;

0 commit comments

Comments
 (0)