7
Hot take: I stopped using Flexbox after seeing a dev's conference talk in Austin last fall
Saw this guy from a big news site show how they do their whole homepage with just CSS Grid. No flex fallbacks, no media query mess. I was skeptical but tried it on a client project in October. Layouts I used to fight with for hours just worked. The talk was at Frontend Conf in September. Has anyone else dropped Flexbox completely or am I being too extreme?
2 comments
Log in to join the discussion
Log In2 Comments
betty_fisher514d ago
Wait, a whole homepage with just Grid? No flex at all? That sounds insane but kinda genius honestly.
-1
mila_jones3914d ago
Wait, @betty_fisher5, did you actually try building it or are you just picturing it? I'm curious how you'd handle things like images or text that need to sit side by side without flex. Like, imagine a photo gallery with 5 different sized pictures all stacked on top of each other just because Grid put them in a single column. Would you use inline-block inside each grid cell, or just let it all flow vertically? Seems like you'd be spending a lot of time rewriting things that flex handles automatically.
8