T
14

Spent 4 hours trying to get a simple button to change color on my webpage

I was following a tutorial and my code looked exactly the same, but the button just stayed gray. Turns out I had a typo in my CSS file, writing 'backround-color' instead of 'background-color'. How do you guys catch these tiny mistakes faster without losing your mind, lol?
2 comments

Log in to join the discussion

Log In
2 Comments
the_lee
the_lee2d ago
Welcome to coding, where you can stare at the same line for an hour and still miss the obvious.
3
hugo_coleman28
Just gotta laugh it off and move on.
1