Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 3 years ago

HTML, CSS, FLEXBOX , MOBILE FIRST, GIT, BEM

accessibility, bem
JuniorFrontDev•30
@JuniorFrontDev
A solution to the Stats preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


-Because I couldn't have control over the height of the background-image I decided to change it to the img tag in the html, thus achieving a better design on different devices -add the min-height so that content is not cut when it is smaller -I used the main, h1 , p tags instead of the div tag for better accessibility.

I await your comments and what could I improve more. =)

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on JuniorFrontDev's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License