Responsive component 3-column-card using HTML and SASS
Design comparison
Solution retrospective
It has been the fastest challenge I have done:), I will gladly appreciate any feedback you may provide to me!
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Layout in desktop looks great but on the responsiveness, at around 782px before the mobile breakpoint, the layout is very squished and doesn't really look great. Mobile view looks fine though.
Some suggestions would be:
- Avoid using
height: 100vh
on a large container like thebody
tag as this limits the element's height based on the remaining screen's height. Instead usemin-height: 100vh
, this takes full height but lets the element expand if needed. - Always have a
main
element to wrap the main content of your page. On this one, the.container
should be using themain
instead ofdiv
. - Those car images are just a decorative image. When an image on a page only acts as a decoration and doesn't really add any content to the site, you would hide them at all times, if you are using
img
usealt=""
andaria-hidden="true"
on it to hide, if it was ansvg
just usearia-hidden="true"
. - Always have a single
h1
on a page. Since there are no text-content that are visible that could beh1
, you will make theh1
screen-reader only text. Meaning this will be hidden for sighted users and only be visible for screen-reader users, search aboutsr-only
stylings and see how it is used. Theh1
text should describe what is the main content is all about, thish1
would be placed as the first text-content inside themain
element.Have a look at Grace's solution on this one inspect the layout and see the usage of theh1
as well the stylings applied to it. - Lastly, just for the responsiveness part to be addressed to avoid those layout not looking good for some screen-size.
Aside from those, great work again on this one.
Marked as helpful1 - Avoid using
- @BryanCloudDevPosted about 3 years ago
Wow, thank you so much Raymart! I did not think about these bullets when creating the page, I will definetely change it and apply it for future proyects. I really appreciate the time you took in order to review my challenge:D.
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