Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: