12
That moment I realized my CSS was the problem, not the browser
Last week I spent 3 hours chasing a weird alignment bug in Chrome on my Windows laptop. Turned out I had a stray `position: relative` on a parent div from a tutorial I copied months ago. Took it out and everything snapped into place. Has anyone else wasted hours on something this simple?
2 comments
Log in to join the discussion
Log In2 Comments
river18319d ago
The real question is how many times did you refresh the browser thinking it was a caching issue before you even looked at the CSS... I've definitely been there, reloading the page like it would magically fix my broken layout logic. What made you finally dig into that parent div after hours of checking everything else?
4
betty_shah19d ago
Oh, I have to respectfully disagree with you there, @river183. I don't waste time spamming the refresh button because I learned long ago that if the layout is broken, it's usually my own dumb CSS mistake, not the browser cache. If I'm sitting there refreshing for hours, I've already lost the plot and need to step away for a cup of tea before looking at the parent div.
5