Desktop layout of the stats preview card component
Design comparison
Community feedback
- @ItsWachiraPosted about 2 years ago
Thanks lucas, it works, thanks
1@correlucasPosted about 2 years ago@ItsWachira I'm happy to hear that, keep it up =)
0 - @ItsWachiraPosted about 2 years ago
Hi yall, still grasping the CSS styling concepts, got a few issues:
how do I add the overlay color on top of the image + a guide on best practices on setting media queries
1 - @correlucasPosted about 2 years ago
👾Hello Brian, congratulations for your new solution!
⭐Answering your question:
To have your image purple with the same overlay effect, you need to use
mix-blend-mode
to make this color blend between the image and the background-color of the container. See the steps below to apply to theimg
orpicture
selector:img { mix-blend-mode: multiply; opacity: 75%;}
Something you keep in mind to add for your next solution is to use relative units as
rem
orem
instead ofpx
to improve your performance resizing fonts between different screens and devices.👋 I hope this helps you and happy coding!
0
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