16
TIL why my CSS grid kept breaking after 4 hours of debugging
Last Tuesday I spent 4 hours trying to figure out why my CSS grid layout kept wrapping weirdly on mobile. I checked every media query, double-checked my breakpoints, even redid the whole thing from scratch twice. Turns out I had a single missing closing div tag in my HTML from three levels up. That one little mistake threw off the whole grid structure. Never thought a missing bracket could mess with an entire layout like that. Has anyone else spent way too long on something that turned out to be a tiny typo?
2 comments
Log in to join the discussion
Log In2 Comments
amy97420d agoTop Commenter
Did you try turning the div off and back on again?
0
the_jessica20d ago
Turning a div off and back on" wait, are you actually serious right now?
2