Limit Item Size Using the minmax Function


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

      repeat(3, minmax(90px, 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>

:balloon: Hi, welcome to the forum!
We see you have posted some code but did you have a question?

Hi , thank you so much
yeah i post a solution for a question , and i think i have already set the name of the question and reference ( html / css )

I’m sorry I still do not have a clue what your question is?
(your question as in, what would you like to know?)

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like

Thank you so much , next time i’ll pay attention

If you want to post something just post it here instead of creating a new topic.

If you do not have a question and are just posing the solution, we do not allow that. I have blurred your code to avoid spoilers.

You can post solutions that invite discussion (like asking how the solution works, or asking about certain parts of the solution). But please don’t just post your solution for the sake of sharing it.
If you post a full passing solution to a challenge and have questions about it, please surround it with [spoiler] and [/spoiler] tags on the line above and below your solution code.

Please link to the challenge so we know which step you are on.

Edit: your code is passing for me.

1 Like

Thank you
i understand now the forum :blush:

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