Design comparison
Community feedback
- @correlucasPosted over 2 years ago
πΎHello Rim, congratulations for your new solution!
Your solution is great and the container seems perfect. Two thing you can change is the
border-radius
that is not so rounded and use a value likeborder-radius: 14px
to make the card look better and give it the vertical alignment with flexbox.To align it, first of all add to the
body
min-height: 100vh
to make the body display 100% of the browser screen size anddisplay: flex
eflex-direction: column
to align the child element (the container) vertically using the body as reference.Here's the changes I did to your code:
body { display: flex; min-height: 100vh; font-family: 'Outfit', sans-serif; font-size: 15px; background-color: hsl(212, 45%, 89%); flex-direction: column; align-items: center; justify-content: center; }
π I hope this helps you and happy coding!
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