How to decide between grid layout and flexbox layout? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to decide between grid layout and flexbox layout?

28th May 2018, 2:50 PM
Prathamesh Sawant
Prathamesh Sawant - avatar
4 Answers
+ 7
The truth is that there is no better choice than another. Flexbox and Grid CSS are good in different aspects and should be used together, and not as alternatives to each other.
28th May 2018, 3:01 PM
Mickel
Mickel - avatar
+ 5
you can use the grid for your actual page layout and flexbox to adapt the data inside the cells of your grid
28th May 2018, 4:05 PM
seamiki
seamiki - avatar
+ 3
I actually didn't learned grid layout. I saw many peoples code who use grid. I like flexbox, it is cool. Will I miss something if I don't learn grid? will it become obsolete with growth of flexbox?
28th May 2018, 5:07 PM
Prathamesh Sawant
Prathamesh Sawant - avatar
+ 2
grid and flex-box, although they have some similarities are two different beasts used for different purposes. here is a video that maybe speaks louder: i chose it because the thumbmail resembles my previous post, you'll probably find other related videos in the suggested list: https://m.youtube.com/watch?v=RSIclWvNTdQ
28th May 2018, 5:39 PM
seamiki
seamiki - avatar