Design comparison
SolutionDesign
Solution retrospective
I'm open to corrections in all areas and best practices.
Community feedback
- @vanzasetiaPosted almost 2 years ago
Hi, Ayomide Olaniyan! 👋
Here are some possible improvements.
- Alternative text should not be hyphenated.
- Those car icons are decorative images. So, leave the alternative text empty.
- Remove
<div class="container">
and<div class="box-container">
. Use<main>
element instead as the container of the cards. - Set
max-width
to the container of the cards instead ofwidth
. - Remove
<div class="button">
. You don't need to make the<button>
as a flex child element. <button>
element must always havetype
attribute to prevent unexpected behavior. Source: Checklist - The A11Y Project #use-the-button-element-for-buttons- Never use
px
unit for font sizes. Userem
orem
instead. Relative units such asrem
andem
can adapt when the users change the browser's font size setting. - Remove
min-width: 100vw
from the<body>
styling. It is not needed. - Don't remove the
outline
of the<button>
elements. Keyboard users rely on the outline as the focus styling to know where they are currently at the page. Learn more — Quick tip: Never remove CSS outlines
I hope this helps. Happy coding! 😄
Marked as helpful0@AyomidejhayPosted almost 2 years ago@vanzasetia Thanks a lot for the corrections
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