There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
I agree. In this specific exercise, setting the lower bound as 50px, my grid doesn’t appear to ever approach this value, even when significantly narrowing the browser window.
The issue is that the other columns are sized with fr and will only split up what’s left of the width after the others have taken their share. This means the middle column takes it’s max of 300px as long as the grid is wider than 300px.
It is a pretty bad example to show off what minmax does.
But set the first column to a fixed 200px and you will see that it works fine. In a wide window, A is 200px, B is 300px and C takes up the rest. When you are narrowing the window first C will shrink until it can barely contain the letter C then B will shrink until it’s 50px wide and then a scrollbar appears at the bottom of the window because the grid is now at the absolute minimum width.
The minmax() enables us to restrict the range of row or column size. But what determines the size of these attributes? And what would be the default value of the row or column in question.
Hey everyone, I need help with page 8, Instruction #2. It says " Using minmax() , change the second column to be between 50 pixels and 300 pixels." I can’t seem to figure out the correct way to do this. Here is what I have:
Adding minmax(50px, 300px) right after the 50%, which is indeed the second column, adds another column and messes up the size. The examples in the lesson shows it embedded in the same way, so what am I doing wrong? Thanks to anyone who can help!
Update: I figured it out. It doesn’t want you to make that 50% between 50px-300px, it wants you to literally replace it with that. Here is the correct code:
I wish this was more clear, but it brings a question. the minmax(value, value) adds a column instead of specifying the previous one? I guess that makes more sense than what I thought. It basically is saying “Hey, make a new column between 50 -300px based on the device.” Would it max out the 300px if the device was wide enough?
If I get super stuck or the lesson is buggy, I sometimes just press ‘Get Unstuck’ in the bottom right corner of the lesson and look at the solution. Just letting ppl know because some lessons are confusingly worded or buggy
I set the 1st and 3rd column with fixed value of 100px and 200px respectively. However, the middle column still won’t resize down to 50px when I change the window size.
When my window reaches certain width, it won’t size down smaller. Does anyone know why my window is restricted from sizing down further? Thank
I tried the code below to set up a grid, but when I use an fr unit in the minmax every element span the width to the container. I thought the unit fr is only supposed to take up a remaining fraction of available space?