Design comparison
Solution retrospective
Hi everyone! Please have a look at this solution and offer me some feedback. Tell me how can I improve it? or maybe I could have done something differently. Thanks!
Community feedback
- @vanzasetiaPosted over 2 years ago
Hi, Akash! 👋
Good job on this challenge! 👏 It's great that you've used Normalize.
I notice that there's
height: -webkit-fill-available;
which I'm not sure what it's used. Regardless, it makes the card touches the top of the browser edge on both landscape and portrait mobile views. Also, on the mobile landscape, it makes the card gets cut off on the top.You can do this in a more simple way by making the
body
element as the main container and themain
element as the card element that wraps the image and thecard__body
. So, my point is to try to simplify the HTML markup if you think it is possible.For the
stats
element, I recommend making it as a list because if the HTML has no styling then a list element would be the best element for thestats
. Also, there's no need forh2
because when it has no styling it would look something like this.- 10k+ companies
- 314 templates
- 12m+ queries
The image is a decorative image so it's best to leave the
alt
empty to hide it from screen reader users. This way, those users can focus on the actual content of the page.That's it! Hope this helps. 😊
Marked as helpful0@Akash20xPosted over 2 years agoHi @vanzasetia
Thanks a lot for these pieces of advice. I will update my solution based on them.
0
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