Replacing the minmax function instead repeat

Replacing the minmax function instead repeat
0

#1

Tell us what’s happening:

container class should have a grid-template-columns property that is set to repeat 3 columns with the minimum width of 90px and maximum

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: 1fr minmax(90px, 1fr);
    
    /* 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 (Macintosh; Intel Mac OS X 10_13_5) 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/limit-item-size-using-the-minmax-function/


#2

Remember that minmax is a function and when done, returns an answer that is only 1. That being said, do you currently have 3 columns or less?


#3

I should have looked at the challenge first. I see you’re supposed to use repeat. Again, don’t forget that minmax returns 1 answer. You can also put a function call inside the arguments of another function.