
Design comparison
SolutionDesign
Community feedback
- @Leo-yagamiPosted 9 months ago
It seems your main div is horizontally centered but not vertically. You can achieve both horizontal and vertical centering using flex-box. You can write this for example:
.body{ display:flex; align-items: center; justify-content: center; }
Hope this helps :)
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