--- id: 5a94fe8569fb03452672e464 title: Create Grids within Grids challengeType: 0 videoUrl: 'https://scrimba.com/p/pByETK/c6N78Ap' forumTopicId: 301128 --- ## Description
Turning an element into a grid only affects the behavior of its direct descendants. So by turning a direct descendant into a grid, you have a grid within a grid. For example, by setting the display and grid-template-columns properties of the element with the item3 class, you create a grid within your grid.
## Instructions
Turn the element with the item3 class into a grid with two columns with a width of auto and 1fr using display and grid-template-columns.
## Tests
```yml tests: - text: item3 class should have a grid-template-columns property with auto and 1fr as values. testString: assert(code.match(/.item3\s*?{[\s\S]*grid-template-columns\s*?:\s*?auto\s*?1fr\s*?;[\s\S]*}/gi)); - text: item3 class should have a display property with the value of grid. testString: assert(code.match(/.item3\s*?{[\s\S]*display\s*?:\s*?grid\s*?;[\s\S]*}/gi)); ```
## Challenge Seed
```html
header
advert
paragraph1
paragraph2
footer
```
## Solution
```html ```