Responsive Stasts Preview Card | Using Flexbox and Media Queries
Design comparison
Solution retrospective
Challenges that I overcome :
- To add overlay color on image !! 2)To write appropriate media query !!
Tips: Always go for Mobile first approach .
Happy Coding !!!!!!!!!
Community feedback
- @correlucasPosted over 2 years ago
👾Hello Mohd Gulam Ansari, congratulations for your new solution!
Answering your question, there are 3 ways to apply the overlay:
You can use,
filter
,background-blend-mode
ormix-blend-mode
(the best choice in my opinion). See the code below:img { mix-blend-mode: multiply; opacity: 86%;}
Here's my solution for this challenge if you wants to see how I build it: https://www.frontendmentor.io/solutions/stats-preview-card-vanilla-css-custom-design-text-animation-RfGBFlMpwK
👋 I hope this helps you and happy coding!
1@NationsAnarchyPosted over 2 years ago@correlucas You were faster than me again, Lucas. Haha :D
1 - @NationsAnarchyPosted over 2 years ago
Great job on the solution, Mohd!
For the overlay - I can suggest you to use these two css properties called
{mix-blend-mode: multiply;opacity: 0.8;}
. I firstly saw this from a very active and skilled developer here, and I immediately used those properties for the image header :DGive that one a go and let me know how that looks for you.
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