Design comparison
SolutionDesign
Solution retrospective
I am unable to add overlay to image , instead i added it to whole card.Anyone please tell me how to add overlay only to image.
Community feedback
- @Mohammedabbas7Posted over 2 years ago
Hello, nice work on your solution. In order to add overlay to the image instead of the whole card:
- nest the overlay div inside img-con div
- add this code to img-con div
.img-con { position: relative; }
Happy coding :)
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