# Solution not working on css grid-template-areas exercise

**URL:** <https://forum.freecodecamp.org/t/solution-not-working-on-css-grid-template-areas-exercise/355599>\
**Category:** freeCodeCamp Support\
**Created:** [March 4, 2020, 1:31am UTC](https://forum.freecodecamp.org/t/solution-not-working-on-css-grid-template-areas-exercise/355599 "2020-03-04T01:31:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalecio](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kalecio/32/135697_2.png) [@kalecio](https://forum.freecodecamp.org/u/kalecio)\
**Post date:** [March 4, 2020, 1:31am UTC](https://forum.freecodecamp.org/t/solution-not-working-on-css-grid-template-areas-exercise/355599/1 "2020-03-04T01:31:39Z")

</div>

**Tell us what’s happening:**  
The exercise is about defining one of the grid cells as empty with a period(.)  
However the solution is not passing the tests

**Your code so far**

```html

<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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36`.

**Challenge:** Divide the Grid Into an Area Template

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design/css-grid/divide-the-grid-into-an-area-template)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![sanity](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sanity/32/378897_2.png) [@sanity](https://forum.freecodecamp.org/u/sanity)\
**Post date:** [March 4, 2020, 5:09am UTC](https://forum.freecodecamp.org/t/solution-not-working-on-css-grid-template-areas-exercise/355599/2 "2020-03-04T05:09:18Z")

</div>

Apparently there’s bug. To make test pass either remove line `/* Only change code below this line */` or move `grid-template-areas:` under the mentioned line.

---

<div class="post-metadata">

**Author:** ![dondeos](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dondeos/32/135416_2.png) [@dondeos](https://forum.freecodecamp.org/u/dondeos)\
**Post date:** [March 4, 2020, 5:17pm UTC](https://forum.freecodecamp.org/t/solution-not-working-on-css-grid-template-areas-exercise/355599/3 "2020-03-04T17:17:45Z")

</div>

Thank you sanity, I eventually passed the challenge after deleting the comment lines in green.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:27pm UTC](https://forum.freecodecamp.org/t/solution-not-working-on-css-grid-template-areas-exercise/355599/4 "2021-06-01T18:27:17Z")

</div>


