CSS Grid Exercise: Divide the Grid Into an Area Template

Tell us what’s happening:


The exercise says :slight_smile:
" container class should have a grid-template-areas property similar to the preview but has . instead of the advert area."

But my code doesn’t work. Why?


Your code so far

  .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;
    /* change code below this line */
      "header header header"
      "footer footer footer";
    /* change code above this line */
<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>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0.

Link to the challenge:

Good try.

Remember the challenge still want s you to have content area. It’s only the ‘advert’ area that needs to be emptied. Don’t forget to surround each row with quotes.