T
9

Found a neat trick for grid areas on responsive layouts

Was messing around with a 3 column layout for a blog and kept running into issues with how articles stacked on mobile. I read a post by some dev who used `grid-template-areas` with media queries to literally rearrange the boxes instead of rewriting the whole thing. Has anyone else found a smooth way to handle that kind of shift without making a mess of the code?
2 comments

Log in to join the discussion

Log In
2 Comments
faith_smith
Totally gonna steal that trick before my code starts crying on mobile.
2
anthony165
anthony16511d ago
Funny how we all figure out hacks for one thing, right before the same problems show up everywhere else in life.
3