Design comparison
SolutionDesign
Community feedback
- @hitmorecodePosted over 1 year ago
Congratulations well done. Just a few things that can be changed
- Add flexbox to the body to center the card.
body{ margin: 0; box-sizing: border-box; background-color: hsl(219, 29%, 87%); min-height: 100vh; /* add these lines */ display: flex; justify-content: center; align-items: center; } .one{ width: 23rem; height: 35rem; display: flex; flex-direction: column; justify-content: center; align-items: center; /* margin: 5rem auto; */ /* by adding flexbox on the body this line is not necessary */ background-color: hsl(0, 0%, 100%); border-radius: 10px; }
Marked as helpful0
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