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

HTML CSS

@azyepes29

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


I didnt know how to change the color of the picture. Can somebody give me a clue? Thanks in advance! Peace out :)

Community feedback

darryncodes 6,430

@darryncodes

Posted

Hi Luis,

As an alternative option to the overlay approach you could try adding a solid linear-gradient to a background image: background-image: linear-gradient(hsl(277, 64%, 61%), hsl(277, 64%, 61%) ), url(../your/image-filepath);

You would also need to explore background-blend-mode (multiply usually does the trick)

All the best!

0
Nakoya Wilson 1,530

@nakoyawilson

Posted

You can try using the mix-blend-mode css property to add the accent color to the image. I would suggest wrapping the picture in a div and adding the violet color as a background and then adding mix-blend-mode and opacity to your picture_img class. I tried adding the violet color as a background to your picture class and it worked for desktop but gave a weird effect on mobile which is why I suggested wrapping the picture in a div but you can experiment with it.

.wrapper_div {
    background-color: var(--softviolet);
}

.picture_img {
    ...
   mix-blend-mode: multiply;
   opacity: 0.75; 
   border-radius: 10px 10px 0 0;
}
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