Design comparison
Community feedback
- @HassiaiPosted over 1 year ago
Replace <section> with the main tag to make the content/page accessible.
There is no need to give the body a height value and it has the wrong background-color. Use the colors that were given in the styleguide.md found in the zip folder you downloaded.
To center .card on the page using flexbox, replace the height in the section/main with
min-height: 100vh
.For a responsive content,give .card a fixed max-width value instead of a max-height and give .imagem and .texto a width of 100% in the mobile design
in the media query, give increase the max-width value in .card, add dis play:flex and give .imagem and .texto a width of 50%.
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 and here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
1
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