CSS Grid: Create Your First CSS Grid

Tell us what’s happening:

Your code so far


<style>
.d1{background:LightSkyBlue;}
.d2{background:LightSalmon;}
.d3{background:PaleTurquoise;}
.d4{background:LightPink;}
.d5{background:PaleGreen;}

.container {
  font-size: 40px;
  width: 100%;
  background: LightGray;
  /* Only change code below this line */
div  {
  container: grid;
}
  
  /* Only change code above this line */
}
</style>

<div class="container">
<div class="d1">1</div>
<div class="d2">2</div>
<div class="d3">3</div>
<div class="d4">4</div>
<div class="d5">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/84.0.4147.89 Safari/537.36.

Challenge: Create Your First CSS Grid

Link to the challenge:

Hey there!

So you added:

div  {
  container: grid;
}

to your code.

Can you describe why you did it exactly like this?
What does div stand for?
What does container stand for?
What does grid stand for?