11
CSS Grid vs Flexbox debate got me thinking after 2 months of using both
I built two sites last quarter, one with Grid and one with Flexbox, and the before-and-after difference in how easy fixes were surprised me. Grid made the layout perfect from the start but Flexbox was way simpler when I had to adjust things later. Any of you beginners stick with one or jump between both depending on the project?
2 comments
Log in to join the discussion
Log In2 Comments
thomas_johnson3512d ago
Ngl I kinda disagree. If you need to fix things later that means you didn't plan your layout well enough upfront. Grid forces you to think ahead which saves headaches down the road. Flexbox lets you get sloppy and patch things together.
3
nathang6712d ago
The whole point of flexbox is that layouts aren't always static though. Grid is great for a fixed, predictable layout like a dashboard or a magazine page, but real world designs change. Content lengths, screen sizes, user scrolls, all that stuff. Planning ahead is ideal but sometimes you need to build something that just works with whatever gets thrown at it. Flexbox handles those edge cases way better than trying to map out every single breakpoint in a grid from day one. It's not about being sloppy, it's about being flexible.
8