@correlucas
Posted
👾Hello Miassa, congratulations for your new solution!
🎯 Your solution its almost done and I’ve some tips to help you to improve it:
1.You did a good work putting everything together in this challenge, something you can do to improve the image that needs to change between mobile and desktop is to use <picture>
instead of <img>
wrapped in a div. You can manage both images inside the <picture>
tag and use the html to code to set when the images should change setting the device max-width
depending of the device (phone / computer) Here’s a guide about how to use picture
: https://www.w3schools.com/tags/tag_picture.asp
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 sets 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
@Miassa35
Posted
@correlucas thank you Lucas for your advice, i just updated the solution using the picture tag but I had a problem in the mobile version, because the color and the background image do not mix and I did not find where is the error because on desktop it works.
@Miassa35
Posted
@correlucas I updated the solution using the picture tag but I had a problem in the mobile version, because the color and the background image do not mix and I didnt find the error because on desktop it works