Re:Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
by rhdunn on Wednesday April 24, 2024 @02:59PM
(#40148167)
Ah, ok. I wasn't able to get the last row working right with flex, but didn't experiment too much as the CSS grid approach worked. You could look through the other answers in that StackOverflow question.
[ Parent
| on HN ]
Re:Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
by reactordev on Wednesday April 24, 2024 @03:15PM
(#40148358)
I have. It’s a mix of people saying it’s can only be done with CSS grid semantics and then a few who prove them wrong with flex box. Reinforcing my above question about “why not :after? :last-child? And flex it into shape?”
But I get it. Grids are easy to grok and grid.css is for the birds. Bake it in. Bloat the spec. And allow pixel perfect precision with one (or two) less div.