Design comparison
Solution retrospective
Hello There,
It's been a month since i start learning how to code. If you have a time please review my code and let me know if something i should look into or if there is any method that I'm using wrong.
Thank you in advance !
Community feedback
- @HassiaiPosted over 1 year ago
For the color of the image , wrap the picture tag in a figure tag.
<figure><picture><img></picture></figure>
in the css give the figure tag a background-color of soft violet , give the img a width a height of 100%, object-fit: cover, mix-blend-mode: multiply and opacity of 0.8.
figure{ background-color: hsl(); } img{ width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: 0.8; }
Use relative units like rem or em as unit for the padding, margin, width values instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful1@dellenarPosted over 1 year agoHey thank you for the feedback. I tried your advice and it worked awesome i totally forget about the mix-blend-mode method. @Hassiai
Also for the units i'll develop a habit to use em & rem for the padding ad margins rather than pixel.
Thank you so much for your time.
1
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