🎙️
7

Finally fixed a CSS bug that took me 6 hours to find

Spent all Sunday hunting down a layout break on my first real project page. Turned out I was missing one closing bracket. Has anyone else spent way too long on a tiny syntax mistake?
3 comments

Log in to join the discussion

Log In
3 Comments
benclark
benclark1mo ago
One bracket threw off your whole layout for six hours?
5
emmag22
emmag221mo ago
benclark trust me we've all been there, download a linter and it saves this headache.
4
sarah_hart
sarah_hart1mo ago
benclark trust me we've all been there" - oh man, that six hour bracket story is too real. I've spent whole afternoons hunting a missing semicolon or a curly brace that got deleted by accident. What kills me is when you look at it fresh the next day and spot it in two seconds. Linters are a lifesaver for that, but also get yourself a decent code editor that highlights mismatched brackets. It won't catch everything but it saves you from those headdesk moments. And if you're really stuck, try rubber duck debugging - just explain your code out loud to a rubber duck or a stuffed toy. It sounds dumb but it works because you slow down and actually read what you typed.
3