Reduce Repetition Using the repeat Function help

Tell us what’s happening:

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;
    /* change the code below this line */
    
    grid-template-columns: repeat(1fr) 20px;
    grid-template-columns: repeat(1fr) 20px;
    grid-template-columns: repeat(1fr) 20px;
    
    /* change the code above this line */
    grid-template-rows: 1fr 1fr 1fr;
    grid-gap: 10px;
  }
</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; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/css-grid/reduce-repetition-using-the-repeat-function

You only need to define grid-template-columns once. I would go and re-read the repeat function and how to construct one from that lesson, and see how they are constructing it.

As you would need to repeat 1fr 3 times. Remember that the first argument for repeat takes in how ever times you want to repeat your columns, and the next argument being the size, which in this case is 1 fr