This is a solution to the Stats preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Note: Delete this note and update the table of contents based on what sections you keep.
Users should be able to:
- View the optimal layout depending on their device's screen size
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
I learned to use mix-blend-mode to give dark color to image
img {
width: 100%;
border-radius: 10px 10px 0 0;
height: 100%;
display: block;
mix-blend-mode:multiply;
}
.img{
background-color: hsl(277, 64%, 61%);
}
##.img is parent of img tag
-Kevin Powell explaination to mix blend mode - Deep dive into mix blend mode -W3school docs of mix blend mode
- Frontend Mentor - @Gloryjaw