Design comparison
SolutionDesign
Community feedback
- @MelvinAguilarPosted about 2 years ago
Hi @caioikn ๐, good job completing this challenge, and welcome to the Frontend Mentor Community! ๐
I have some suggestions you might consider to improve your code:
- Use the
<main>
tag to wrap all the main content in your solution instead of using<div class="container">
.
- The cart icon is for decoration purposes only, so it can be hidden from screen-readers by adding
aria-hidden="true"
and leaving its alt attribute empty:
<img src="./img/icon-cart.svg" alt aria-hidden="true">
- The
<div class="botao linha">
container should be abutton
and not adiv
element.
- On mobile devices, using a media query, change the direction of the container with class "card" with
flex-direction: column
;
I hope those tips will help you! ๐
Good job, and happy coding! ๐
Marked as helpful2 - Use the
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