Skip to content

Commit cbaec5c

Browse files
[css-grid-1][css-grid-2] Use body in example 9 (w3c#6037)
Use the body element because it has used as a grid container in the example above: ``` body { display: grid; grid: "h h h" "a b c" "f f f"; grid-template-columns: auto 1fr 20%; } article { grid-area: b; min-width: 12em; } nav { grid-area: a; /* auto min-width */ } aside { grid-area: c; min-width: 12em; } ``` This change makes these examples much more clear.
1 parent 5546ead commit cbaec5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

css-grid-1/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ Reordering and Accessibility</h2>
801801
<pre class="lang-css">
802802
@media all and (max-width: 60em) {
803803
/* Too narrow to support three columns */
804-
main { display: block; }
804+
body { display: block; }
805805
}
806806
</pre>
807807
</div>

css-grid-2/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ Reordering and Accessibility</h2>
843843
<pre class="lang-css">
844844
@media all and (max-width: 60em) {
845845
/* Too narrow to support three columns */
846-
main { display: block; }
846+
body { display: block; }
847847
}
848848
</pre>
849849
</div>

0 commit comments

Comments
 (0)