How to use a grid-gap

Tell us what’s happening:

introduce a 10px gap between row and 20px between column

Your code so far


<style>
 .d1{background:LightSkyBlue;}
 .d2{background:LightSalmon;}
 .d3{background:PaleTurquoise;}
 .d4{background:LightPink;}
 .d5{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;
   /* Only change code below this line */
grip-gap: "10px" "20px";

   
   /* 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/83.0.4103.97 Safari/537.36.

Challenge: Add Gaps Faster with grid-gap

Link to the challenge:

grid-gap not grip-gap

And it’s not in quotes, it would just be

grid-gap: 10px 20px;

Note also that it’s just gap now (and row-gap and column-gap) – grid-gap is correct and works, but they updated the syntax (going forward, soon flex will be able to use the property, so once that happens calling it “grid-gap” doesn’t make sense).