Design comparison
SolutionDesign
Solution retrospective
Any opinion is welcome
Community feedback
- @kens-visualsPosted about 3 years ago
Hey @joaovictor333 👋🏻
I have some suggestions to help you fix the accessibility issues and some other things.
- In your markup,
<div class="container">...</div>
should be<main class="container">...</main>
and<div class="attribution">...</div>
should be<footer class="attribution">...</footer>
. These will fix the accessibility issues. Don't forget to generate a new repot once you fix the issues. - For the car icons, add
aria-hidden="true”
, because they are for decoration. You can read more aboutaria-hidden
here. For example:
<img src="images/icon-luxury.svg" alt="" aria-hidden="true”>
- Now let's fix the position of the card with flexbox, and this is how to do it:
body { background-color: hsl(0, 0%, 95%); min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
However, you need to remove all
margin
s from.container
and.attribution
in order for this to work.- Lastly, instead of giving separate
border-radius
es to each box, add these two lines to.container
:
overflow: hidden; border-radius: 10px;
I hope this was helpful 👨🏻💻 overall, you did a good job, nicely done. Cheers 👾
Marked as helpful0 - In your markup,
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