Design comparison
Solution retrospective
I'm still learning how to configure the mobile version.
Community feedback
- @HassiaiPosted over 1 year ago
The body has a wrong background color.
To center the main on the page using flexbox, replace the height in the body with min-height: 100vh.
For a responsive content give the main a fixed max-width value that is total width of all the sections
max-width:600px
There is no need to give the section a width. Replace the height in .card with a padding value for all the sides, this will prevent the content from overflowing on smaller screen.
There is no need to give the body a width.
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