Design comparison
SolutionDesign
Community feedback
- @OrnellaSablicPosted 5 months ago
I think you did a good job with your code! I suggest you use grid or flexbox to center the main container, instead of using the margin property. I leave you some examples:
With flexbox:
main { display: flex; justify-content: center; }
With grid:
main { display: grid; place-content: center; }
Greetings!
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