@correlucas
Posted
👾Hello Joseph Odunsi, congratulations for your new solution!
🎉 Nice solution and nice code! I can see that you paid a lot of attention to your code/design. If you don’t mind I’ve some tips for you:
1.The best to way to have this image and every image responsive and easy to work, its by creating a general property adding display: block
and max-width: 100%
to make it fits the size of the container the image is inside and also respect the container width while scaling, add alsoobject-fit: cover
to make the image auto-crop when resizing inside the column:
img {
display: block;
object-fit: cover;
max-width: 100%;
}
2.Make your hero image have the same look and the color purple overlay, you need to use mix-blend-mode
using the multiply
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
@dhatGuy
Posted
@correlucas, thanks for the feedback.