Design comparison
Community feedback
- @correlucasPosted about 2 years ago
๐พHello @cwasi, congratulations for your new solution!
Your component is perfect, but is not responsive yet, this is due the
fixed width
you've applied to the container.Look both
width
andmax-width
the main difference between these properties is that the first(width) is fixed and the second(max-width) isflexible
, for example, a component withwidth: 1110px
will not grow or shrink because the size will be ever the same, but a container withmax-width: 1110px
ormin-width: 1110px
can grow or contract depending of the property you've set for the container. So if you want a responsive block element, never usewidth
choose ormin-width
ormax-width
.You can use
mix-blend-mode
to make this color blend between the image and the background-color of the container.img { mix-blend-mode: multiply; opacity: 75%;}
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!
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