File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -443,6 +443,7 @@ Declaring the Grid</h3>
443
443
the last row is given a fixed size of ''30px'' .
444
444
<pre>
445
445
main {
446
+ display: grid;
446
447
grid: "H H "
447
448
"A B "
448
449
"F F " 30px
@@ -460,10 +461,12 @@ Declaring the Grid</h3>
460
461
461
462
<pre>
462
463
main {
464
+ display: grid;
463
465
grid: repeat(auto-fill, 5em) / auto-flow 1fr;
464
466
height: 100vh;
465
467
}
466
468
@media print {
469
+ display: grid;
467
470
main {
468
471
grid: auto-flow 1fr / repeat(auto-fill, 5em);
469
472
}
@@ -477,8 +480,9 @@ Declaring the Grid</h3>
477
480
478
481
<pre>
479
482
main {
480
- grid: auto 1fr auto / repeat(5, 1fr);
481
- min-height: 100vh;
483
+ display: grid;
484
+ grid: auto 1fr auto / repeat(5, 1fr);
485
+ min-height: 100vh;
482
486
}
483
487
</pre>
484
488
</ul>
@@ -546,6 +550,7 @@ Sizing the Grid</h3>
546
550
547
551
<pre>
548
552
main {
553
+ display: grid;
549
554
grid: auto-flow 1fr / repeat(auto-fill, 5em);
550
555
min-height: 100vh;
551
556
justify-content: space-between;
Original file line number Diff line number Diff line change @@ -444,6 +444,7 @@ Declaring the Grid</h3>
444
444
the last row is given a fixed size of ''30px'' .
445
445
<pre>
446
446
main {
447
+ display: grid;
447
448
grid: "H H "
448
449
"A B "
449
450
"F F " 30px
@@ -461,6 +462,7 @@ Declaring the Grid</h3>
461
462
462
463
<pre>
463
464
main {
465
+ display: grid;
464
466
grid: repeat(auto-fill, 5em) / auto-flow 1fr;
465
467
height: 100vh;
466
468
}
@@ -478,8 +480,9 @@ Declaring the Grid</h3>
478
480
479
481
<pre>
480
482
main {
481
- grid: auto 1fr auto / repeat(5, 1fr);
482
- min-height: 100vh;
483
+ display: grid;
484
+ grid: auto 1fr auto / repeat(5, 1fr);
485
+ min-height: 100vh;
483
486
}
484
487
</pre>
485
488
</ul>
@@ -547,6 +550,7 @@ Sizing the Grid</h3>
547
550
548
551
<pre>
549
552
main {
553
+ display: grid;
550
554
grid: auto-flow 1fr / repeat(auto-fill, 5em);
551
555
min-height: 100vh;
552
556
justify-content: space-between;
You can’t perform that action at this time.
0 commit comments