Tell us what’s happening:
I am confused about this code, why they have to set width to 100vw and then set min-width and max-width to the same value? Can you explain this code to me? Thank you.
Your code so far
WARNING
The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.
You will need to take an additional step here so the code you wrote presents in an easy to read format.
Please copy/paste all the editor code showing in the challenge from where you just linked.
I set width to 4rem and do not add the max-width and min-width and seems like it works the same, so can you tell me what is the diffrent between my code and their code ? Thank you so much.
I have tried that, but can you show me what is the diffrence between these two? Bacause even when i set width to 900vw or 40vw, it still looks the same
to see this effect, you either have to use “min/max” and not “min & max” properties in same rule, hope this make sense… if not please feel free to reach out
or in this case, just using “width” would have that “different” view on resizing screen, as it mentions in instructions
This approach ensures that the width is fixed, whereas setting width specifically would allow the elements to shrink to the container (because we are using flexbox).
it does not directly relate to this “step” what-so-ever, i was simply replying to your query about “flexbox”, there i can see, i said something which is not quite right, it’s only targeting “all h1 with flex as class names as nested in it”, and not two “different ones”
But I do not get what it has to do with flexbox. In the image below we can note that not only h1 uses ‘display: flex;’ but also the div with the id set to ‘years’ does use it. However, I don’t see any relation between div#years and div.table-wrap and, since assumed that div.table-wrap is not a flex container, it seems to me the overlapping, in this case, may not be related to flexbox.
I would really appreciate if someone could dive into it and explain (1) what div.table-wrap and its contents have to do with flexbox and (2) whether the explanation I tried above to the td tbody shrinking/overlapping makes any sense at all.