Https://www.freecodecamp.org/learn/responsive-web-design/css-grid/create-grids-within-grids

Tell us what’s happening:

Your code so far


<style>
.container {
  font-size: 1.5em;
  min-height: 300px;
  width: 100%;
  background: LightGray;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  grid-gap: 10px;
  grid-template-areas:
    "advert header"
    "advert content"
    "advert footer";
}
.item1 {
  background: LightSkyBlue;
  grid-area: header;
}

.item2 {
  background: LightSalmon;
  grid-area: advert;
}

.item3 {
  background: PaleTurquoise;
  grid-area: content;
  /* enter your code below this line */
  display: grid;
  grid-template-colums:auto 1fr;
  /* enter your code above this line */
}

.item4 {
  background: lightpink;
  grid-area: footer;
}

.itemOne {
  background: PaleGreen;
}

.itemTwo {
  background: BlanchedAlmond;
}

</style>

<div class="container">
<div class="item1">header</div>
<div class="item2">advert</div>
<div class="item3">
  <div class="itemOne">paragraph1</div>
  <div class="itemTwo">paragraph2</div>
</div>
<div class="item4">footer</div>
</div>

Your browser information:

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

Challenge: Create Grids within Grids

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/css-grid/create-grids-within-grids

please tell us what’s happening

It think

grid-template-colums

schould be

grid-template-columns

You should pay attention spelling. I can see that you forgot to put “n” for columns…

display:grid;
grid-template-columns: auto 1fr;

that will be the solution of your problem. Good Luck !

1 Like