Re:CSS Tips
by schwartzworld on Monday April 26, 2021 @05:10PM
(#26948186)
I want to learn grid, and I keep waiting to be given a layout I can't implement in flexbox as an excuse. It's been years of waiting through multiple jobs.
[ Parent
| on HN ]
Re:CSS Tips
by sodapopcan on Monday April 26, 2021 @07:23PM
(#26949599)
I like grid because it eliminates the need for any elements that
exist purely for layout. This makes markup cleaner which makes it easier to change in the future.
But as I stated in elsewhere in this thread, grid is not a replacement for flexbox. There is overlap, they both have their strengths.
the one thing i couldn't do with flexbox where I had to use grid was a sidebar that was being rearranged responsively, part of it below the main content, and part of it above. but yeah, most of the time flexbox + order can get you quite far