
Design comparison
SolutionDesign
Community feedback
- P@dionysia-lemonakiPosted about 2 months ago
Congratulations on completing the challenge!
I noticed that your card isn't fully centered in the viewport.
margin: 4rem auto;
on.card
horizontally centers it but doesn't center it vertically.Instead, you can turn the body into a flex container to center
.card
both horizontally and vertically:body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
I hope that 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