CSS question: Flexbox vs. Grid

I have completed the Web Design Certification challenges and am ready to move on to the projects.

The CSS challenges covered how to create a layout for the webpage by using either flexbox or grid. When you create a project, how do you decide which one to use? Is it simply a matter of personal preference? Or is one better than the other for doing different things?

Thanks for your help.

I had the exact same question to my wife. She has been a full stack dev for 10+ years now. She said, she has never used grid, ever… So as you search for the answer to that question and find dozens of answers, keep that in the back of your mind.

-Justin :vulcan_salute:

1 Like

I have been using grid only when I need a two dimensional grid - spaces up and down as well as left to right. Otherwise I use flex box.

Here are some resources that helped me:

In fact all of Jen Simmons’ videos have been very helpful to me. I was watching the set she made for Layout Land:

1 Like

Interesting, Thank you Justin.

1 Like

Thanks for the links, they look useful.

1 Like