News for hackers. Stuff that matters.
Re:CSS Tips by asddubs on Monday April 26, 2021 @04:43PM (#26947849)
or you could just use flexbox to do the exact same thing and have a superset of that extremely broad support, including ie11 without having to rely on any kind of magic.

https://caniuse.com/flexbox

I do use grid when I need it, but I don't see the point of using grid in places where flexbox will do. Granted this is on the verge of not mattering at all anymore, but I just don't see the point in using something less compatible when you don't have to.

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.
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.

Re:CSS Tips by asddubs on Monday April 26, 2021 @07:48PM (#26949800)
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