T
9

Tried building a simple website with vanilla HTML and CSS last week, ended up crying into my keyboard

I figured coding would be like laying tile. You measure, you cut, you fit it in place. But nope, I spent 4 hours trying to center a stupid div on a page and it still looked wonky. My buddy who's a web dev told me to just use flexbox, but I couldn't even figure out how to spell it right in the code. I watched a 30 minute YouTube tutorial and paused it every 10 seconds just to keep up. By hour 3, my coffee was cold and I had accidentally deleted my entire navigation bar twice. Has anyone else hit a wall that hard when you first started? How did you get past it without throwing your laptop out the window?
2 comments

Log in to join the discussion

Log In
2 Comments
the_aaron
the_aaron19h ago
Four hours on a single div?
1
lucas972
lucas97211h ago
Yeah I used to think four hours on one div was crazy honestly. I remember trying to do quick fixes and just throwing random margin and padding values at it. But after spending like 3 hours last night trying to center a modal that kept breaking on mobile I totally get it now. Sometimes you just gotta keep tweaking and refreshing until the browser finally behaves.
2