Create Your First CSS Grid

Create Your First CSS Grid
0

#1

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;
    /* add your code below this line */
    grid: 
    
    /* add your 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/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/css-grid/create-your-first-css-grid


#2

Hey Doaamkader,
read the instructions carefullly for the challlenge.

For example in this font-size is property and 40px is value.
Try the similar approach with the challenge.
Hope it helps.


#3

Question: container class should have a display property with a value ofgrid.

Have a look at this, and make sure you understand what you are upto.