Flex Box vs CSS Grid

I’ve been away from all this for a while.
But I remember learning about CSS Grid a couple years ago. I thought it was awesome and made designing pages so much easier.

So, I’m back at it and saw FCC has a crash course in something called Flex Box.

Is Flex Box the same as CSS Grid?
Are Flex Box and CSS Grid like cousins?
Is Flex Box the new CSS Grid?

No, they’re orthogonal. As a rule, flex is for one dimension layout (ex: a navigation bar), grid is for two dimensional layout (ex: a screen), although they overlap significantly. It’s expected you’d use both together. Support for flex was available and complete in most browsers about four years before grid, it’s not new.

2 Likes

Thanks for clarifying.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.