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

Stat preview-card component

Shawn 90

@Shawwnscott

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 wasn't able to make the background how it should be. Please help.

Community feedback

@mdajmalshadab

Posted

Use a div container for the image, set container background to violet color, then set image opacity to some value like 0.8, and in the end use below CSS property for your image mix-blend-mode: multiply;

Marked as helpful

0
Dharmik_487 1,740

@Dharmik48

Posted

Hey Shawn👋,

I really think that your solution looks great on bigger screens, but the problem is that the image doesn't have the purple accent. And also when screen size gets smaller the image doesn't up all the space in right that it should instead it gets way smaller and the card itself loses the padding.

And to make the image purplish you can use background: linear-gradient(hsla(277, 64%, 61%, 0.8), hsla(277, 64%, 61%, 0.8)), var(--image-url) center center;. You can learn more about it here- https://dev.to/selbekk/how-to-overlay-your-background-images-59le.

Hope it helps🤗

Marked as helpful

0
Shawn 90

@Shawwnscott

Posted

Both these replies helped me very much!!! thank you.!!

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