Container class should have a grid-template-areas property similar to the preview but has . instead of the advert area

Tell us what’s happening:
it doesnt work and i dont see where is my mistake?

Your code so far


<style>
.item1{background:LightSkyBlue;}
.item2{background:LightSalmon;}
.item3{background:PaleTurquoise;}
.item4{background:LightPink;}
.item5{background:PaleGreen;}

.container {
  font-size: 40px;
  min-height: 300px;
  width: 100%;
  background: LightGray;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-gap: 10px;
  grid-template-areas:
  /* Only change code below this line */
    "header header header"
    ". content content"
    "footer footer foooter";
  /* Only change code above this line */
}
</style>

<div class="container">
<div class="item1">1</div>
<div class="item2">2</div>
<div class="item3">3</div>
<div class="item4">4</div>
<div class="item5">5</div>
</div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36.

Challenge: Divide the Grid Into an Area Template

Link to the challenge:

Hi there,

The only thing you haven’t done is is place the grid-template-areas below the comment , like this:

grid-template-areas: “header header header”
“. content content”
" footer footer footer";

Then delete the grid-template-areas property which is sitting above the comment line.

Hope that helps! Jayne

Hi,
I think it is due to your last “foooter”. You have to remove 1. “o” and it works!

2 Likes

Moriel,

Well spotted!

I have just seen it - just goes to show!

Jayne :upside_down_face:

1 Like