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

flex box, grid and media query

@joshibikash

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@AkoToSiJeromeEh

Posted

Hey ! Great work out there i just want to share on how to achieve color overlay is you will use a css properties called mix-blend-mode and apply it on img element , also you need to apply bg-color in the img container . by doing and applying those properties you can now achieve the color overlay same as original design has happy coding !!.

.right {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background-color: hsl(277, 64%, 61%); // add this
}
.right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  mix-blend-mode: multiply; // add this
  opacity: 0.7; // you can adjust this
}

Marked as helpful

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