Design comparison
SolutionDesign
Solution retrospective
welcome to gime your feedback
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Layout looks great in desktop, however the responsive state could be improved. You don't have to wait for the 380px just to show the mobile layout, you don't. When developing websites, inspect your layout in dev tools, try to change the screen's width, if you think that the layout becomes squished or distorted, you could use that size as your breakpoint.
Some suggestions would be:
- I would personally suggest to use the
body
tag as aflexbox
. You don't need themargin
on thecontainer
selector to place it centered. You could have added:
body { align-items: center; display: flex; flex-direction: column; justify-content: center; margin:0; min-height: 100vh; }
This way, the content will always be centered dynamically.
- Always have a
main
element that will wrap the main content of the page. For this one, the.container
selector could have usedmain
element instead ofdiv
. - Avoid using multiple
h1
on a webpage. Only use 1h1
per page. For this one, theh1
would be a screen-reader only text. Have a look at Grace's solution on this one, inspect the layout, see the usage of theh1
and the stylings applied on it, copy the stylings because you will use that a lot. - The
alt
for all the cars icons should be left empty likealt=""
. If an image is just a decoration, usealt=""
andaria-hidden="true"
on it, but if the image adds content, then use a meaningfulalt
value. - Do not remove the
outline
property. This helps user to know where they are, since this serves as a visual indicator for them. If you remove this, make sure to add some in the:focus-visible
state of the element. - I would prefer to use anchor tags
a
tag on thelearn more
instead ofbutton
, since it looks more likely a link to "learn more" about the cars.
Just those ones, but consider the responsive state of the site. Great work again for this one.
1 - I would personally suggest to 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