Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Card HTML, CSS Flexbox

@marcusvcalves

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@yannmarc

Posted

Good job friend!!

Try including container your div's in landmarks or semantic HTML tags. This should solve the accessibilities issue of your work. For landmarks use this:

<div class="my-div" role="sectionmydiv"> </div> This should solve your issues.

Try comment your code also, which are signs of good practices (write meaningful comments).

Avoid styling the tag element itself, rather use a class for it. Which is also good practices.

Note The classes should be self descriptive.

0

@Cyrus-Akwaboah-Emmanuel

Posted

Nice try but you have to revist your work. Image tags must have alt text <img src="./flower.jpg" alt="flower">. Also you can use background-size: cover; object-fit: cover; to make the image have a perfect fit. There need to be equal spacing between the heading, paragraph, and the stats. And all your content must be contained in a landmark. You can learn more about it here

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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