--- id: 5a94fe8569fb03452672e464 title: Create Grids within Grids challengeType: 0 forumTopicId: 301128 dashedName: create-grids-within-grids --- # --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`. # --hints-- `item3` class should have a `grid-template-columns` property with `auto` and `1fr` as values. ```js assert( code.match( /.item3\s*?{[\s\S]*grid-template-columns\s*?:\s*?auto\s*?1fr\s*?;[\s\S]*}/gi ) ); ``` `item3` class should have a `display` property with the value of `grid`. ```js assert(code.match(/.item3\s*?{[\s\S]*display\s*?:\s*?grid\s*?;[\s\S]*}/gi)); ``` # --seed-- ## --seed-contents-- ```html
header
advert
paragraph1
paragraph2
footer
``` # --solutions-- ```html ```