Hi there,
I sincerely apologize if the same question has been asked before, did a search but I still don’t see an answer to my question. The thing is, I don’t see how the right hand size browser pane reflects the following:
“header header header”
“advert content content”
“footer footer footer”
Why is there no content for example at the end of the second row if it says “advert content CONTENT”? And what is “advert”? Is it a place preserved for website ads or something? I have been breezing through the program but just got hung upon this concept. I would like to know how the code is reflected in what I see in the browser pane on the right hand side at the beginning of the challenge before the solution of the exercise.
Could anyone kindly point me in the right direction? Thanks in advance.
Your code so far
<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;
/* change code below this line */
grid-template-areas:
"header header header"
"advert content content"
"footer footer footer";
/* 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; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.0.1617 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/css-grid/divide-the-grid-into-an-area-template