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

Sherif 150

@hikkenoace1

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 couldn't overlay the light purple color on the image i tried everything couldn't really know what's wrong with the code

Community feedback

@madhukar-30

Posted

just give position: relative to overlay div and use after ::after pseudo element to place the color over image the and then use mix-blend-mode property code:

.overlay {

width: 500px; position: relative;

}

.overlay::after {

content: "";
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: hsl(277,64%,61%);
mix-blend-mode: multiply;

}

Hope it helps 👍

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