News for hackers. Stuff that matters.
Re:Flexbox Froggy – A game for learning CSS flexbox by jdkjs on Monday February 07, 2022 @07:53PM (#30253669)
Is it worth it to use flexbox now that grid exists? I’m not sure if they solve the same kind of problems.
Re:Flexbox Froggy – A game for learning CSS flexbox by frosted-flakes on Monday February 07, 2022 @08:25PM (#30253885)
Different problems, 1D vs 2D. There's some overlap, but they attack the problem from different directions. Flex child elements determine their own size, while the parent grid determines the size of the child grid elements.
Re:Flexbox Froggy – A game for learning CSS flexbox by chrismorgan on Tuesday February 08, 2022 @03:49AM (#30256188)
There’s a lot of overlap between the two, but there are also various problems that one can solve that the other can’t. Grid is 2D with limited 1D-like auto placement, whereas Flex is 1D with limited 2D-like wrapping.