Responsive using CSS grid

Solution retrospective
Having trouble centering the "container" class which contains grid items vertically
Please log in to post a comment
Log in with GitHubCommunity feedback
- @spencerrunde
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 helpful
Join 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