B
24

Spent 4 hours trying to center a div in my first project

I was building a simple profile page for a friend and could not get the main content box to sit in the middle of the screen. I tried everything I saw on Stack Overflow, but nothing worked until I realized I had a typo in my CSS class name. It was just 'profile-conatiner' instead of 'profile-container'. Has anyone else lost a whole afternoon to a tiny spelling mistake like that?
3 comments

Log in to join the discussion

Log In
3 Comments
rowan658
rowan6582mo ago
Feel your pain, but that's a container not a conatiner.
1
jasonf17
jasonf172mo ago
My brain does that with "definitely" all the time.
6
seanjackson
Oh man, "lost a whole afternoon" is the realest thing I've read today. I once spent three hours because I wrote "margin: 0 auto" but had a parent element with "display: block" instead of setting it up right. The fix was so simple I wanted to throw my laptop. Now I just use a big comment at the top of my CSS to remind myself to check the simple stuff first.
0