Responsive Stasts Preview Card | Using Flexbox and Media Queries

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 !!!!!!!!!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @correlucas
👾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!
- @NationsAnarchy
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!
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