NFT-preview-card-component

Solution retrospective
Anything!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @beowulf1958
Congratulations on completing this challenge. It looks great. However, I noticed that the hover state on the image is missing the view icon. This is easily fixed.
First, in the root, define a new variable
--cyan20: hsla (178, 100%, 50%, 0.2)
This is your cyan color at 20% transparency. Then replace the background-color withbackground: var(--cyan20) url("./images/icon-view.svg") no-repeat center;
This places the icon on top of the color in the center of the div. This article explains everything. Try it out!Hope this helps.
Marked as helpful
Join 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