Design comparison
Solution retrospective
- 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
- @vanzasetiaPosted over 1 year ago
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 to0.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 helpful0
Please log in to post a comment
Log in with GitHubJoin 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