a simple stats preview card with HTML & CSS

Solution retrospective
My NEWBIE-Free7th build-up. Can we use flex properties for HTML { } instead of body {}, inside a CSS sheet? I know it's possible but is it okay to do so?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @correlucas
👾Hi Lakshan, congrats on completing this challenge!
To make your hero image have the same look and the color purple overlay, you need to use
mix-blend-mode
using themultiply
one.The mix-blend-mode CSS property sites how an element's content should blend with the content of the element's parent and the element's background.Here’s how you can add this to your
img
selector:img { mix-blend-mode: multiply; opacity: 84%;}
Here's a good article explaining these effects with mix-blend-mode:
https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode
✌️ I hope this helps you and happy coding!
Marked as helpful - @Andrii-Rohov
There's a problem, when in mobile version, overflow: hidden; in the main box is preventing the layout from being scrollable. Try to remove it, and add margin-top: 400px;
Marked as helpful
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