I am a bit of a newbie so bear with me, I am trying to create a CSS grid where I have a header, main content and a footer. I was trying to set the main content to auto however i think that the root div only has the height of its content and not the whole webpage so i tried:
#root{
height:100%;
}
But it still does not work.
```
body{
margin:0;
}
main{
display:grid;
grid-template-areas:
"header"
"content"
"footer";
grid-template-rows: 50px auto 70px;
}
Header{
grid-area:header;
border:1px solid black;
}
Footer{
grid-area:footer;
border:1px solid black;
}
#contentMain{
grid-area:content;
border:1px solid black;
}
```