Design comparison
Solution retrospective
My second challenge!
"Never put off till tomorrow what you can do today"-.
Bye!
Community feedback
- @correlucasPosted about 2 years ago
👾Hello David Aguirre, congratulations for your new solution!
1.A shortcut to deal with the multiple images in this challenge is by using the
<picture>
tag instead of importing this as an<img>
or using a div withbackground-image
. Use this tag to make the image change between mobile and desktop is to use<picture>
instead of<img>
wrapped in a div. Look that for SEO and search engine reasons isn’t a better practice import this product image with CSS since this will make harder to the image be found. You can manage both images inside the<picture>
tag and use the html to code to set when the images should change setting the devicemax-width
depending of the device (phone / computer) Here’s a guide about how to usepicture
:https://www.w3schools.com/tags/tag_picture.asp
2.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 sets how an element's content should blend with the content of the element's parent and the element's background.Instead of using this lines of codes for the overlay effect:
div.card-2::before { content: ""; width: 100%; height: 100%; background-color: #5b0093; position: absolute; opacity: 0.5; border-radius: 0 10px 10px 0; }
Use this:
img { mix-blend-mode: multiply; opacity: 84%;}
✌️ I hope this helps you and happy coding!
Marked as helpful0@DavidQA71Posted about 2 years ago@correlucas Hi Lucas! I really apreciate your answer, i didn't know about mix-blend-mode. I started studying programming 8 months ago, so there are many things i dont know but your advices are so helpful! thank you!
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