Debugging a Layout Bug That Wasn’t CSS
I thought it was CSS.Of course I did. When a layout breaks, CSS is the usual suspect—the rogue with its hood up, pretending it didn’t touch anything. Margins collapse, flex items misbehave, something refuses to center even though you swear it’s centered. We’ve all been there, tightening selectors and muttering !important like a forbidden incantation. This time, the UI looked wrong in a way that felt familiar. A component was…