How do I add the auto and 1fr grid template columns in item 3 class?

Tell us what’s happening:
Describe your issue in detail here.

  **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;
  /* Only change code below this line */
  Here is your grid
`.gridElement{
/* this gives you a grid */
display: grid;
}

  /* Only change code above this line */
  Here is your nested grid
}.nestedGridElement{
/* this gives you a NESTED grid */
display: grid;
}`

.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/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62

Challenge: Create Grids within Grids

Link to the challenge:

Hi @alana.liu !

It looks like you tried copying the explanation from the guide.
I have gone ahead and updated the guide to include a more straightforward answer.

But you should reset the lesson, and carefully read through the test cases.

The first test case says this
item3 class should have a grid-template-columns property with auto and 1fr as values.

The second test case says this
item3 class should have a display property with the value of grid .

Your answer should be two lines of code.

Hope that helps!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.