Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 3 years ago

stats-preview-card-component-main using vanilla css and flex box

H0bG0blin9g•55
@H0bG0blin9g
A solution to the Stats preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I think the purple colour on the overlay does not match that of the design which seems to be much more vibrant, not sure why. Also I had issues with the responsiveness on the desktop version - whenever the width of the page was sized smaller, it would add padding at the top and bottom of the image instead of letting the image fill the whole height of the component. So what I did was set the breakpoint to show the mobile version just before that issue occurs. Any ideas how to fix this so that it is actually responsive?

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • P
    The Burrito Doggie•1,260
    @BurritoDoggie
    Posted over 3 years ago

    Hi!

    The project you took on was simple and you made it look great! I am very happy to see people do accurate work like you! I would like to see you make more challenges look awesome! You can look a the 'report' above to improve your code 🙃!

    Keep Coding!

    (๑♡⌓♡๑)

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
Frontend Mentor logo

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

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub