Design comparison
SolutionDesign
Solution retrospective
Having trouble centering the "container" class which contains grid items vertically
Community feedback
- @spencerrundePosted about 3 years ago
Hello Willy,
To center the container class vertically, you can remove the top and bottom padding from the body class. Then, add
justify-content: center;
to the main class. Looks great!Marked as helpful0
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