10
My grid collapsed on mobile after I set a fixed minmax value
Last Tuesday my 3 column layout turned into a single stacked mess on my phone because I used minmax(300px, 1fr) without checking the smallest screen, so now I'm redoing the card grid with auto-fit and asking if anyone else has hit this with responsive minmax?
1 comments
Log in to join the discussion
Log In1 Comment
lucaslane15d ago
Stop overthinking it, minmax is fine if you pair it with a proper container query or a media breakpoint below 600px. That fixed 300px is your problem, not the grid itself. I've run the same setup and it only bites when you treat minmax like a magic bullet instead of checking your actual viewport widths.
7