Skip to content

Commit 48d8a32

Browse files
committed
[css-grid] Update example to new syntax for subgrids. We might want to consider improving the shorthand here...
1 parent f99c9e5 commit 48d8a32

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

css-grid/Overview.src.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ <h4 id="subgrids">
10081008
<p>
10091009
A <a>subgrid</a> behaves just like a normal <a>grid container</a> except that:
10101010

1011-
<ul>
1011+
<ul style="list-style-type: lower-alpha">
10121012
<li>
10131013
The number of explicit tracks is given by its <a>grid span</a>,
10141014
rather than by 'grid-template-rows'/'grid-template-columns'.
@@ -1074,7 +1074,8 @@ <h4 id="subgrids">
10741074
grid-template-columns: auto 1fr;
10751075
}
10761076
li {
1077-
display: subgrid;
1077+
display: grid;
1078+
grid: subgrid / subgrid;
10781079
margin: 0.5em;
10791080
border: solid;
10801081
padding: 0.5em;

0 commit comments

Comments
 (0)