CSS Grid: Divide the Grid Into an Area Template, code not working?

Tell us what’s happening:
The exercise is telling me to make an empty cell by replacing the word “advert” by a period within the css grid. I believe I have done this but every time I run the code, the exercise tells me I did it wrong.
When I checked the answer I had an exact copy, and even when I copy and pasted it the assignment still told me I was wrong.
Does anyone know what is going on here?

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 footer";
  /* 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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.17 Safari/537.36 OPR/68.0.3616.0 (Edition developer).

Challenge: Divide the Grid Into an Area Template

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/css-grid/divide-the-grid-into-an-area-template

delete the comments and you will get an honest answers from the tests
there is a bug that cause the comments to make the tests fail

1 Like

That worked! Thanks for telling me this, I didn’t even have the slightest clue on what to do :stuck_out_tongue:

Holy smokes! That was the easiest fix ever! I also had this issue on this lesson and then two lessons after “Use Media Queries to Create Responsive Layouts” worked like a charm for both! Thanks!

This will not yet create any layout, but we now have named areas to use in a layout.This will not yet create any layout, but we now have named areas to use in a layout.