Design comparison
Solution retrospective
I've encountered some problems creating the photo cover
Community feedback
- @correlucasPosted about 2 years ago
πΎHi Niklaus, congrats on completing this challenge!
I've just opened your live site and I can say that you did a great job putting everything together! There's some tips to improve your solution:
If you want to add the same effect of the design for the image overlaying it with
purple
there's a shortcut that is by usingmix-blend-mode
with the modemultiply
and with an opacity aroundopacity: 82%
. See the code below:img { mix-blend-mode: multiply; opacity: 82%;}
βοΈ I hope this helps you and happy coding!
Marked as helpful1 - @hyrongennikePosted about 2 years ago
Hi @NiklausRupail,
Nice job on your first attempt of the challenge
You can add the following .
.photo-desktop, .photo-mobile { position: relative; }
and then remove the top and left on the .img-cover and set the
width
andheight
to 100% that way it work on mobile and desktop with no additional code.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