The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › So after all these articles, there is still no actual reason to use flexbox?
Looked around at these articles, and haven’t found anything that css grid couldn’t do. Except css grid can be later expanded into 2 dimension. https://www.academind.com/learn/css/css-grid-vs-flexbox/ https://hackernoon.com/the-ultimate-css-battle-grid-vs-flexbox-d40da0449faf https://css-tricks.com/css-grid-replace-flexbox/
Are these articles really that meaningless? Do we surely NEED flexbox in a single dimension layout or item, container.
You could just grid I guess.
But they are meant to be used together grid isn’t placing flexbox
Flexbox is used for one dimensional layout.
Grid is used for two dimensional layout.
So for example a grid of article cards you would lay them out using CSS Grid
And the layout for the actual article card will use flexbox.
Really it’s down to you.