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 (Solution)

Johan BB 300

@JohanXTheKing

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


  • Hi, guys.
  • Any advice please feel free to write it down. 😺😺
  • Good code for everyone.

Community feedback

Firerenza 60

@Firerenza

Posted

Another option is to use the linear gradient function.

This is what I did:

.imageContainer{ background: linear-gradient(0deg, hsl(277, 64%, 61%, 0.5) 1%, hsl(277, 64%, 61%, 0.5) 100%), url(images/image-header-desktop.jpg); }

Marked as helpful

1
Nathan Ray 230

@NathanRayM

Posted

Hello, In CSS You could try setting the background color to the container that the image is in. Then, add the mix-blend mode to your image in CSS and set it to multiply and adjust the opacity.

.image-container{
background-color: hsl(277, 64%, 61%);
}
img{
mix-blend-mode: multiply;
opacity: 0.75;
}

Marked as helpful

1

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