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

P

@EsraaY21

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

@YacoubDweik

Posted

Creative as usual!

Do not forget to align the container using:

  • position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);

Instead of giving the whold body display: grid.

Keep it up!

Marked as helpful

2

P

@EsraaY21

Posted

@YacoubDweik Thank you very much for the tip!

1
Adriano 36,730

@AdrianoEscarabote

Posted

Hello Esraa Yaareb, how are you? I was really pleased with your project, but I’d like to offer some advice that might help:

To get closer to the photo overlay effect, you'd better use mix-blend-mode. All you need is the div under the image with this background color: hsl(277, 64%, 61%); and position mix-blend-mode: multiply and opacity: 80% on the image or apply image to activate the overlay by blending the image with the div's color. See the code below:

img {
    mix-blend mode: multiply;
    opacity: 80%;
}

The rest is spot on.

Hope it’s helpful to you. 👍

Marked as helpful

1

P

@EsraaY21

Posted

@AdrianoEscarabote Thank you very much for the explanation!

1

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