Help Me With This; CSS Grid: Using Media Queries to Create Responsive Layouts

Tell us what’s happening:
Its A Stub

Your code so far

```html

<style>
.item1 {
  background: LightSkyBlue;
  grid-area: header;
}

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

.item3 {
  background: PaleTurquoise;
  grid-area: content;
}

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

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

@media (min-width: 300px){
  .container{
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "advert header"
      "advert content"
      "advert footer";
  }
}

@media (min-width: 400px){
  .container{
    /* change the code below this line */
     grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "advert header"
      "advert content"
      "advert footer";

  /* change the code above this line */
  }
}
</style>

<div class="container">
<div class="item1">header</div>
<div class="item2">advert</div>
<div class="item3">content</div>
<div class="item4">footer</div>
</div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36.

Challenge: Use Media Queries to Create Responsive Layouts

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/css-grid/use-media-queries-to-create-responsive-layouts

You just need to adjust the Grid template areas on the 400px media query.

How Can I Do That Please?

Look at the way the elements are aligned and correspond with the grid template areas. Adjust the elements in the grid template areas to match what the challenge is asking.

@media (min-width: 400px){
  .container{
    /* change the code below this line */
     grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "advert header"  <-- You need to change this
      "advert content"
      "advert footer"; <-- And Change this

  /* change the code above this line */
  }
}

What Should I change it to??

When you get stuck I recommend to check out w3sschools.com for more information indepth.

@media (min-width: 400px){
    .container {
      /* change the code below this line */

      grid-template-areas:
        "header header"
        "advert content"
        "footer footer";