R
19

Why does nobody talk about how long it takes to fix a simple CSS alignment bug

Spent almost 4 hours last night trying to center a div in my first real project and it turned out I just needed to add 'margin: 0 auto' with a width set. I was reading all these Stack Overflow posts about flexbox and grid and none of them worked for my stupid simple layout. Has anyone else spent way too long on something that should have been a 2 minute fix?
2 comments

Log in to join the discussion

Log In
2 Comments
taylor.susan
idk man it's always the simplest stuff that eats up your whole night.
4
jason958
jason95815d ago
@taylor.susan exactly, I spent an hour last night trying to fix a lightbulb that just needed a twist the other way. Made me feel real smart standing there holding a screwdriver like it was gonna help. Simple stuff always has a way of making you look like a total clown.
8