Please i need help here i dont know why cant work thanks

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

.container {
  font-size: 40px;
  min-height: 300px;
  width: 90px;
  background: LightGray;
  display: grid;
  /* Only change code below this line */

  grid-template-columns: 90px repeat(3,  1fr);

  /* Only change code above this line */
  grid-template-rows: 1fr 1fr 1fr;
  grid-gap: 10px;

<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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0

Challenge: Limit Item Size Using the minmax Function

Link to the challenge:

You should replace the 1fr with a minmax function using 90px as minimum and 1fr as maximum value. therefore, the first 90px you added isn’t necessary.

grid-template-columns: repeat(3, minmax(90px, 1fr));

should work if you try it like this


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.