Hacker News new | ask | show | jobs
by Gorkys 4048 days ago
Flexbox seems to serve most HTML layouts. Are there any that it doesn't work so well for? What about CSS Grid Layout? I've not heard anything about that for a while. Does that have any advantages over Flexbox?
1 comments

It seems the CSS Grid Layout needs far less divs to accomplish the same layout. With Flexbox you end up creating a lot of parent elements to layout the content elements correctly. With CSS Grid Layout you can express the layout more precisely in the CSS, so there is no need for a lot parent elements.
I have lots of examples of grid layout over at http://gridbyexample.com (you need Chrome with Experimental Web Platform features flag on to view them)