23
Finally fixed my stupid CSS layout after 3 hours of staring at it
I've been learning HTML and CSS for like 2 months and my flexbox stuff never lined up right. Turns out I was missing a stupid 'align-items' property the whole time. Added 'center' to the container and everything snapped into place. Has anyone else spent way too long on one tiny CSS thing that seems obvious now?
2 comments
Log in to join the discussion
Log In2 Comments
charlie_allen10d ago
Ever notice how life's like that too? You stare at one tiny problem forever, then one small change fixes everything. It's always the simple stuff we overlook.
1
mary_patel5910d ago
Gotta push back on that a little bit, because I mean it's not always the simple stuff. Sometimes the small change that fixes everything actually takes a ton of work to figure out and apply, you know? Like you might spend ages staring at a broken sink, then realize it's just a loose pipe, but getting to that pipe means crawling under the house with a flashlight and wrestling with rusted bolts. So it's simple in hindsight but not always simple in the doing. idk, maybe it's just me but I've definitely had those moments where the fix was obvious after the fact, but getting there was still a whole ordeal.
5