T
9

Back when someone told me my CSS grid was a hot mess and I got butthurt

I was building a product grid for a client site about 2 years ago and thought I was super clever with all these nested grids. Some random person on a dev forum just said "your grid is broken on mobile, try using flexbox for the card layout instead". I was so annoyed at first cause I spent like 3 days on that grid. Turns out they were totally right, the cards were squishing weird on screens under 600px wide. I switched to flexbox for the card wrapper and kept the grid for the page layout, and it fixed everything. Has anyone else gotten feedback that stung at first but actually made your code way better?
0 comments

Log in to join the discussion

Log In
0 Comments

No comments yet

Be the first to share your thoughts on this discussion.