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

Stats preview card component

@adityas24

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


It's my first challenge here. I tried to make it fully responsive. The only problem I had is I could not match the color shade on the image. Would love to get some feedback.

Community feedback

Fidel Lim 2,775

@fidellim

Posted

Hi Aditya,

The fix to this is by adding background blend mode.

.card__img {
    background-image: url(images/image-header-desktop.jpg);
    background-color: rgb(170, 92, 219);
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
}

This code will do the work. Adding background-blend-mode: multiply will darken the color overlay.

I hope it helps.

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