0
Hot take: I think people overuse grid for simple layouts.
I was building a client's contact page for a small bakery site in Portland. I set up a full grid for a simple two-column form and image layout. The client's kid, on a really old tablet, couldn't see the form right because the grid's fallback was a mess. I redid it in about 20 minutes using flexbox for the main structure and only used grid for the image gallery below. It just worked better. Anyone else find grid can be overkill sometimes?
3 comments
Log in to join the discussion
Log In3 Comments
amy2681mo ago
Remember when we all argued about floats?
7
samschmidt1mo ago
My buddy Dave in Austin spent three days trying to make a product card grid responsive. He used CSS grid for a simple three column layout. It looked perfect on his monitor, but on his girlfriend's phone the images kept breaking into weird rows. He finally switched the main layout to flex with a media query and fixed it in an hour. It was a total over-engineering trap. Reminds me of what @amy268 said about the float days, just a new shiny tool we all want to use everywhere. Sometimes the simpler solution is right there.
5