Design comparison
SolutionDesign
Solution retrospective
I used an empty cell in css grid to push a column more towards the center. Is this considered bad practice? It felt wrong doing it. But I didn't know how to achieve the same result otherwise.
Community feedback
- @peanutbutterjllyPosted 9 months ago
I've seen people do layouts where they'll have small cells on the left and right side and put all their content in the middle, then when they want something to take the full width, have it use all three columns, so i wouldnt say your fix was 'bad'.
A different solution probably wouldve been to use justify-content or margin/padding.
good job on getting it figured out!
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord