Design comparison
Community feedback
- @HassiaiPosted over 1 year ago
There is no need to give the body and html a width and height values.
To center .card on the page using flexbox, replace the height in the main with min-height: 100vh.
You forgot to give the body a background-image with a background-size of contain ana background-repeat of no-repeat.
For a responsive content, replace the width in .card with max-width and increase its value for it to be equivalent to the design.
max-width: 432px which is 27rem/em
In the media query you only have to change the background-image of the body.
the background-images is in the images folder in the zip folder you downloaded. Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. 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