Design comparison
Community feedback
- @HassiaiPosted almost 2 years ago
The <div class="attribution"> should be out of the main tag and replace it with the footer tag. Add the alt attribute
alt = " "
to the img to fix the accessibility and error issue.To center .card on the page, add display: flex; align-items: center: justify-content: center; or display: grid place-items: center to the body.
Use rem or em as unit for the padding, margin, width and preferably rem for the font-size for more on CSS units Click here
Give .card a fixed max-width value instead on a percentage value. e.g:
max-width: 300px
. you won' require a media query for this challenge if the max-width is given a fixed value.Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful1
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