T
20
c/coding-for-beginnerszarak18zarak184d agoProlific Poster

Found a trick to debug CSS faster using the browser console

Last month I was stuck on a layout issue for like 2 hours. Turns out I forgot a closing bracket on a media query in my stylesheet. I started using the browser's inspect tool to check each element's computed styles one by one. It saved me so much time tracking down where stuff breaks. Now I always open the console before I start tweaking code. Has anyone else found a quicker way to spot CSS errors? I feel like there has to be an even better method out there.
2 comments

Log in to join the discussion

Log In
2 Comments
barnes.kai
I disagree, googling "CSS hasLayout" saved me way more time than the console ever did.
7
janahenderson
Settle down, it's just a display bug, not brain surgery.
5