19
I was making my grid areas way too complicated for no reason
I was building a product page for a client in Austin and had like 15 named grid areas for a simple 3 column layout. My coworker looked at my code and just said 'Why not use line numbers?'. I swapped to grid-column: 1 / 4 and grid-row: 2 / 3 for everything and cut the CSS file size by almost 40%. Has anyone else ditched named areas for simpler projects?
3 comments
Log in to join the discussion
Log In3 Comments
terry_hayes181mo ago
Honestly that's everywhere, right? We add layers of complexity before trying the simple fix. I'll spend twenty minutes looking for a specific kitchen tool when the big spoon next to the sink would work fine. Or I see people set up five different apps to manage their day when a piece of paper on the fridge does the job. We just assume the advanced option is better.
1
brown.susan1mo ago
Okay but calling it "layers of complexity" makes it sound like some big life problem. It's just looking for a spoon. Most of the time it's a tiny waste of a few minutes, not a real issue. We like our specific tools and fancy apps because they feel good to use, not because we're making some deep mistake. It's harmless.
2
hart.zara3d ago
Yeah but that's how we end up with ten apps for one simple task.
1