--- id: 5a94fe0569fb03452672e45c title: Divide the Grid Into an Area Template challengeType: 0 forumTopicId: 301130 dashedName: divide-the-grid-into-an-area-template --- # --description-- You can group cells of your grid together into an area and give the area a custom name. Do this by using `grid-template-areas` on the container like this: ```css grid-template-areas: "header header header" "advert content content" "advert footer footer"; ``` The code above groups the cells of the grid into four areas; `header`, `advert`, `content`, and `footer`. Every word represents a cell and every pair of quotation marks represent a row. # --instructions-- Change the template so the `footer` area spans the entire bottom row. Defining the areas won't have any visual effect right now. Later, you will make an item use an area to see how it works. # --hints-- `container` class should have a `grid-template-areas` property similar to the example but with the `footer` area spanning the whole bottom row. ```js assert( __helpers .removeCssComments(code) .match( /.container\s*?{[\s\S]*grid-template-areas\s*?:\s*?"\s*?header\s*?header\s*?header\s*?"\s*?"\s*?advert\s*?content\s*?content\s*?"\s*?"\s*?footer\s*?footer\s*?footer\s*?"\s*?;[\s\S]*}/gi ) ); ``` # --seed-- ## --seed-contents-- ```html
1
2
3
4
5
``` # --solutions-- ```html
1
2
3
4
5
```