Submitted about 2 years ago
Stats preview card component solution - CSS Flexbox
@virgile-lab
Design comparison
SolutionDesign
Community feedback
- @VCaramesPosted about 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
- The
header
is not needed for this challenge, since it is a component that it is meant to be part of a larger site.
- The statistics at the bottom are a list, so it should be built using an
unordered List
element.
- The image serve no other purpose than to be decorative; It adds no value. The Alt Tag should left blank and have an aria-hidden=“true” to hides it from assistive technology.
- Your image is not taking up the entire container, you will need to apply
height: 100%
andobject-fit: cover
.
- Implement a Mobile First approach 📱 > 🖥
With mobile devices being the predominant way that people view websites/content. It is more crucial than ever to ensure that your website/content looks presentable on all mobile devices. To achieve this, you start building your website/content for smaller screen first and then adjust your content for larger screens.
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! 🍂🦃
Marked as helpful0 - 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