The purposes of flexbox
and Grid-layout
are different.
Flexbox:
His focus is to organize the items in rows or columns, but following the "block" system, that is to say the content will be several rectangles, one next to the other, or on the other.
Grid-layout:
As the name says, it makes a grid (grid), and serves to organize your items in a more sophisticated way, where each one has an independent behavior, occupies a number of rows and columns that you stipulate.
Example of layout I needed to do:
The mobile version was totally different from this, but it was very easy to convert, because, as I said, each item behaves independently, so I just changed the position of each of them and it was easier than using any "gambiarra".
Grid-layout problem is IE compatibility, works only on version 11 and not very well, so I use a SASS mixin library that generates for me.
grid-layout-IE11
question: the flex of css does not have support for all browsers, but flexbox has?
– Adriano Luz
I honestly don’t know why I’ve never used this frame. But FLEX seems to be more accepted.. look at this: http://i.stack.Imgur.com/azmua.png
– Fiel
Thanks for the @Fiel reply. Yes, I wasn’t talking about the framework. But on the question of the name, even the W3 called so 0 https://www.w3.org/TR/css-flexbox-1/.
– Allan Ramos
The flexbox framework uses attributes called flexbox to make this part of responsiveness.
– Allan Ramos