Design comparison
Solution retrospective
I am aware its not completely right like it suppose to be. Coudn't get the Image hover state right. I am trying to get back at css and web and submitting this solution so I am not stuck on this for long time. Perhaps In future after learning some more I'll get back to it.
Community feedback
- @ThedeezatPosted over 2 years ago
Hello, somnath š
Good work on finishing this challenge! i have a few suggestions i think can help.
For the image hover effect i think you should try something like this, for the
html
<figure class="container"> <span class="image_cover"></span> <img class="child-1" src="./images/image-equilibrium.jpg" alt="nft"> <figcaption class="heading"> <a href="#"> Equilibrium #3429</a> </figcaption> </figure>
As long as the
image
element and thefigcaption
element is wrapped in the same container, it will be easier when styling to target any of the child's element for the hover effect..container { position: relative; } .container:hover a { color: #00FFF8; } .child-1, .image_cover { opacity: 1; width: 100%; height: 200px; border-radius: 10px; position: relative; z-index: 1; } .container:hover .image_cover { position: absolute; z-index: 2; background-color: rgba(0, 255, 248, .5); }
And also, i think you should check out š semantic html
Well that's it, nice work again! i hope this helps.
Marked as helpful0@itssumoPosted over 2 years ago@Thedeezat Sure I'll look into it and add those in code thank you very much
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