Skip to content

Commit

Permalink
Update subgrid value (rstacruz#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingadi authored Nov 1, 2022
1 parent 5f5ce3e commit b7f08ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion css-grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ prism_languages: [css]
/* Display properties */
display: grid;
display: inline-grid;
display: subgrid;
```

```css
Expand All @@ -26,8 +25,10 @@ prism_languages: [css]
grid-template-columns: 25% 50% 25%; /* Percentage units */
grid-template-columns: 1rem auto 1rem 2fr; /* Fill remaining widths with auto or fr units */
grid-template-columns: repeat(12, 1fr); /* Repeat columns without needing to write them */
grid-template-columns: subgrid; /* Use column tracks defined on parent grid */

grid-template-rows: 1rem 10% auto repeat(5, 10px); /* Mix any group, same rules work for rows */
grid-template-rows: subgrid; /* Use row tracks defined on parent grid */
```

```css
Expand Down

0 comments on commit b7f08ce

Please sign in to comment.