grid minmax | minimum size

Hey, i've seen, and use myself, the minimum for the minmax function being 16rem for responsive grids. This works great for a viewport size of 320px without overflow, but for devices smaller (i'm looking at minimum 280px), it overflows due to it being a fixed value, i'm surpised it's taken me this long to notice that haha. I've tried replacing it with minmax(min(100%, 16rem), 1fr) but that doesn't seem to work. Does anyone have a recommended solution? Thanks in advance. https://codepen.io/deerCabin/pen/eYwoaQL
R
CodePen
minmax query
...
9 Replies
Tok124 (CSS Nerd)
Tok124 (CSS Nerd)•4mo ago
It works just fine for me
No description
Tok124 (CSS Nerd)
Tok124 (CSS Nerd)•4mo ago
now it does not overflow
snxxwyy
snxxwyyOP•4mo ago
ah yeah when i view it the same as you are it doesn't overflow either. I checked via the responsive tab, it overflows there for some reason?
No description
Tok124 (CSS Nerd)
Tok124 (CSS Nerd)•4mo ago
Click that button "insert the most common meta tag" and open debug mode
No description
Tok124 (CSS Nerd)
Tok124 (CSS Nerd)•4mo ago
and then it wont overflow
No description
snxxwyy
snxxwyyOP•4mo ago
oh that's interesting, i didn't know that was a thing, learnt something new there, thank you.
Tok124 (CSS Nerd)
Tok124 (CSS Nerd)•4mo ago
You find debug mode here
No description
Tok124 (CSS Nerd)
Tok124 (CSS Nerd)•4mo ago
No problem 🙂
snxxwyy
snxxwyyOP•4mo ago
ah was just looking for that, thanks again 🙂
Want results from more Discord servers?
Add your server