📢
2
c/coding-for-beginners•ivanl76ivanl76•1mo agoMost Upvoted

Finally got my first CSS grid layout to work without copying from a tutorial

I spent like 3 hours staring at the same line of code last Friday before realizing I was putting grid-template-columns in the wrong container, and now it actually makes sense why my layout was breaking before.
2 comments

Log in to join the discussion

Log In
2 Comments
reese_singh87
reese_singh871mo agoMost Upvoted
Man that is the most frustrating thing ever when you finally spot it. I once spent an entire evening trying to fix a positioning bug only to realize I had a typo in the class name and it was just not even applying to anything. It is weird how something that simple can wreck your whole afternoon and make you feel like you're losing your mind. But when it finally clicks and everything just falls into place, that feeling is so worth it. Great job sticking with it though, most people would have just given up and copied the tutorial again.
9
lane.drew
lane.drew1mo ago
My buddy spent a whole weekend on a flexbox issue only to find out he was targeting the wrong selector the whole time. Your grid thing sounds way too familiar, man.
8