frontend

When CSS Breaks: Debugging with Empathy

When a CSS rule looks strange, I try to find the page it was written for before deleting it. There may be a perfectly ordinary reason behind it.

Reproduce the problem, inspect the computed styles, and change one thing at a time. If the fix affects a shared selector, check the other places it's used. I don't always enjoy this part, but it's quicker than discovering later that my tidy-up broke a page I never opened.