Why does this behaviour happen?

I just wanted to know why this behaviour occurs? The right side shrinks down way more on smaller screens than the left side even tho I set both to 1fr. I attached a quick video to show you what I mean. Code: https://jsfiddle.net/kmz7pwan/4/
7 Replies
MarkBoots
MarkBoots•2y ago
Because the first column can not get smaller than the min-content (the word courses! + padding), the other columns will shrink to try and prevent overflow. (up until all columns reached the min-content width)
rezabet
rezabet•2y ago
Oh okay, is there a possible fix for this?
MarkBoots
MarkBoots•2y ago
well, the screen is a wide as it is... do you want 2 columns?
rezabet
rezabet•2y ago
Yes
MarkBoots
MarkBoots•2y ago
well, then there is no option. if a column > ~50% of the screen, 2 won't fit in 100% you could clamp padding, gap and fontsize a bit to adjust to the screenwidth. but there will always be a max
rezabet
rezabet•2y ago
Oh okay, thanks for the informative answers, I appreciate that!
Coder_Carl
Coder_Carl•2y ago
tables of data are expected to side scroll. So 🤷 its a feature and you should be making sure that the data can be read more than trying to squish it down to a page width.
Want results from more Discord servers?
Add your server
More Posts
how to add animation to countdown timerHello guys, I'm working on countdown slider, and I can easily make the simple version of it, but I gChanging transform-origin for hover effect (enter left, exit right)Hi. One thing I've always struggled to understand is how to change `transform-origin` so that an anProperty 'pull' does not exist on type 'ObjectId[]'```moongose``` ```typescript``` I want to remove from an Array list and this is the error I am gettiHow do I select text contents parent to add class list to it?I am using this method to change the text content based on what the api value returned is. ```airQu180deg linear gradient causing line at the bottomWhen it's 180 deg then you can see a light green line at the bottom








. But if you change it aSome icons will not load in github pagesSome of my icons will come back as status 404 when i open the github pages site. But in my VS code llittle forEach loop questionso the person i'm following to learn JS is working on local storage and want to store a color value CSS -webkit- , -ms- prfixesHow to know which css properties should be -webkit-, -ms- etc... prefixed, I'm confused here, is theuse Tab key to focus on elements in specific sectionsI have my website landing page-scrolling works as if it's a slider/carousel. now, all types of userswant single page effect in the page with scrollbarHey, folks as you can see that in the image I'm having the scrollbar because I have the extra conten