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

@sumaira10041

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


How to give color to background img?

Community feedback

hitmorecode 6,230

@hitmorecode

Posted

Nice well done. See below how you can fix the overlay

.right{
  background:url(img.jpg) no-repeat;
  height:446px;
  width:560px;
  position: relative;
}

.right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsl(277, 64%, 61%);
  mix-blend-mode: multiply;
  opacity: 0.8;
}

When going to smaller screen the image is at the bottom, you need to do a flex direction reverse.

Marked as helpful

0

@sumaira10041

Posted

Thanks.....You always give me too much information@hitmorecode

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