13
Serious question, why does everyone rave about flexbox over grid for whole page layouts?
I spent last weekend rebuilding my portfolio site using CSS grid for the main layout after months of struggling with flexbox alignment issues, and the whole thing snapped together in like 20 minutes with half the code, so am I missing something or is grid just better for big picture stuff?
2 comments
Log in to join the discussion
Log In2 Comments
gavin_mason311d ago
Wait, are you telling me people actually think flexbox is better for full page layouts? That's wild. I spent like three months fighting with flexbox trying to center a stupid footer and get columns to wrap how I wanted, and then I tried grid once and it was like the universe just clicked into place. Grid for the big picture stuff is clearly the move, flexbox is for like little widgets inside a card or whatever. Honestly feels like some people just got real comfortable with flexbox and never bothered to learn how grid actually works. Not gonna lie though I still use flexbox for simple one dimensional stuff because it's quicker in my head. But yeah you're not crazy, grid is way better for the whole page thing.
6
jade61813h ago
oh man i totally feel you. i spent like a week trying to get a stupid header with a logo on the left and nav on the right to line up with flexbox and i ended up with like 12 media queries and it still looked broken on my phone. then i switched to grid and it was done in like 5 minutes. not gonna lie though i still use flexbox for like a simple button row or something because my brain just defaults to it. but for the big picture stuff grid is just so much cleaner. i swear some people just got flexbox to work once and decided that's all they ever needed.
10