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

grid + overlay Css

Edson Ruiz 160

@xedsonruizx

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


  1. How do I get the purple color to the img?

I have try to get it but is not the same.

or the correct way to made it.

Community feedback

Vanza Setia 27,795

@vanzasetia

Posted

Hi, Edson Ruiz! 👋

For the image overlay, I recommend using mix-blend-mode property. To use that property you need to use an actual <img> element. Then, reduce the opacity of the image to 0.75.

You can see @DarrickFauvel's solution as your reference.

Frontend Mentor | Stats preview card component - HTML / Sass / Grid coding challenge solution

I recommend having one stylesheet for this project. This way, the site will only have to do one request to get all the styling. It means the site will load faster. Also, in my opinion, five stylesheets for this size of project are overkilled.

Wrap the text with a meaningful element like a paragraph element. There should not be text in <span> and <div> alone.

Use a list element for the statistic. Then, use the <picture> element for the image if you decide to put the image on the HTML markup.

I hope this helps. Happy coding! 👍

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