Design comparison
SolutionDesign
Community feedback
- @md5daltonPosted over 2 years ago
Hello Shashree Samuel
If you want to center the preview card both on the x and y axis, you can use flex box:
body { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
Then don't forget to remove the margins on
main
element.Happy coding👌
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