Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 4 years ago

Stats Card Component with SASS

Felipe Pacelli•140
@flp-pcll
A solution to the Stats preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hello! This is my first SASS project!

///(FIXED: setting display: block as inline style in the <img> tag)///

My question here is: when i change to the mobile version, the hero image does not fit properly in the container so it gets a purple border bottom (that is the background-color of the .img-area container). I set the img width to 100% and then:

.img__area { background-color: $soft-violet;

img {
    object-fit: cover;
    height: 100%;
    mix-blend-mode: multiply;
    opacity: .9;
}

}

Am i doing anything wrong?

I Would love to hear some suggestions and advices for this one :)

Thanks!

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 Felipe Pacelli'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
  • Use cases

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