Design comparison
SolutionDesign
Solution retrospective
Hi I was unable to center the content vertically in the body. How do I go about that? Also, I used margin: auto to center it horizontally. Is that alright? Thanks
Community feedback
- @johbadebusolaPosted over 2 years ago
I am guessing that you created a Grid container.. To make the grid container centered, you have to set the width of the grid container. Then you set the margin to auto.. If that doesn’t work, just add margin to the top of the grid container.
0
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