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

css Grid

@Al-Baraa-Bakri

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


This Is My First FrontEndMentor Submit .

Community feedback

Fidel Lim 2,775

@fidellim

Posted

Hello Al-Baraa, Salam.

Great work finishing your first FEM project! I hope you'll continue to build more projects here :) Everything seems fine as it works well for desktop and mobile devices. I just have one suggestion regarding the color overlay of the image. You can remove the ::after selector and add the color within the image tag itself. Have a look at this code:

.container .img {
    background-image: url(images/image-header-desktop.jpg);
    background-color: hsl(277, 64%, 61%);
    background-blend-mode: multiply;
}

This will solve your issue. The trick here is the background-blend mode. This will enable image and color to mix together. Also, blend-mode: multiply, will make the color darker. Hence, it will look like the design made by FEM. You also don't need to add position: relative to your image class.

I hope it helps :)

Marked as helpful

0

@Al-Baraa-Bakri

Posted

@fidellim Thank You For This Helpful Feedback :) background-blend-mode more logical Than made overlay By ::after Thanks :)

1
Fidel Lim 2,775

@fidellim

Posted

@Al-Baraa-Bakri No problem!

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