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

Responsive card component using HTML , CSS Grid and Flexbox

@youssef-404

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


Is there more practical way to create the purple filter ?

Community feedback

dewslyse 3,025

@dewslyse

Posted

You can easily create the purple filter using one of the <blend-mode> properties in css (background-blend-mode or mix-blend-mode). A value of multiply on these properties should do the trick. Try it.

.image {
    background: url("images/image-header-desktop.jpg") no-repeat;
    width: 50%;
    border-radius: 0 10px 10px 0;
    background-blend-mode: multiply;
    background-color: hsl(277, 64%, 61%);
}

With this approach, you may not need the .filter class.

Marked as helpful

2

@youssef-404

Posted

@dewslyse thank you sir i just learn new thing from you thank you

1

@Shreyansh-07

Posted

Good job bro. But one thing your font-weights are a bit messed up. 👍

Marked as helpful

1

@youssef-404

Posted

@Shreyansh-07i appreciate your feedback i will try to fix it

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