Re:CSS Findings from the Threads App
by hoosieree on Sunday July 16, 2023 @08:50AM
(#36746424)
CSS grid feel like someone asked TikTok to design a rectangle and said yes to every suggestion.
[ Parent
| on HN ]
What does this meab?
Re:CSS Findings from the Threads App
by shortcake27 on Sunday July 16, 2023 @10:49AM
(#36747621)
I think they mean it’s a complicated solution for an uncomplicated problem.
Grid systems existed long before CSS grid and were dead-easy to understand and use (960, Bootstrap etc). CSS grid, by comparison, is completely unintuitive. Sure, it’s definitely more powerful, but the barrier to entry is way higher.
Exactly. "Align things to a grid" seems like a simple concept, but CSS grid seemingly has at least 3 ways to place the top-left corner of an element, and it just gets worse from there. I tried it for a simple layout with 3 elements and quickly decided I prefer flexbox, tables, or even floats.
I think when you come across situations that only grid can solve, then you appreciate it a bit more.
Flexbox complements grid imo, it's not an alternative.