June 26, 2020 02:24 am GMT
Original Link: https://ishadeed.com/article/grid-layout-flexbox-components/
Grid for layout, flexbox for components
When should we reach for CSS grid and when should we use flexbox? Rachel Andrew wrote about this very conundrum way back in 2016:
Flexbox is essentially for laying out items in a single dimension in a row OR a column. Grid is for layout of items in two dimensions rows AND columns.
Ahmad Shadeed wrote a post where he gives the same advice, but from a different angle. He argues we should use grid for layout and … Read article “Grid for layout, flexbox for components”
The post Grid for layout, flexbox for components appeared first on CSS-Tricks.
Original Link: https://ishadeed.com/article/grid-layout-flexbox-components/
Share this article:
Tweet
View Full Article