Design comparison
SolutionDesign
Community feedback
- @ecemgoPosted over 1 year ago
Some recommendations regarding your code that could be of interest to you.
- If you want to center it correctly, you can use flexbox and min-height in the
body
:
body { font-size: 15px; background-color: hsl(212, 45%, 89%); display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; }
- finally, you'd better add
background-color: white
for the card
Hope I am helpful. :)
Marked as helpful0 - If you want to center it correctly, you can use flexbox and min-height in the
- @RUBBOSSPosted over 1 year ago
nice work)) change background color and height of box
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