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

Solution stats preview Card

@fbonilla02

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 have no idea how to change the color of the image

Community feedback

Byron 2,180

@byronbyron

Posted

It needs to be a background image instead and it needs background-blend-mode: multiply;, so might look something like this:

<div class="image-container" style="background-image: url('images/image-header-mobile.jpg')"></div>
.image-container {
    background-size: cover;
    background-position: center;
    background-color: hsl(277deg 64% 64%);
    background-blend-mode: multiply;
    width: 100%;
    height: 100%;
}

Then add overflow: hidden; to the .main-container class to make sure it rounds off the corners.

Hope that helps!

0

@ChenchoDev

Posted

Try with

background:linear-gradient
0

@Leandroooh

Posted

you can use a property filter

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