DEV Community

Discussion on: When to use CSS Grid and when to use Flexbox for Multiline Layout

mpuckett profile image
Michael Puckett Author

That's a great example of where flexbox shines! Throw a bunch of stuff at it and let it find the best fit. Flex layout is a constraint system, which is great to be able to dip into, but the layout logic can certainly cause surprises. Grid to me feels like building with brick and mortar, much more predictable. We're very lucky to finally have both at our disposal!