Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

nft-card

eric ogbe 70

@EricOgbe

Desktop design screenshot for the NFT preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Could someone explain how to get the green filter over the image like in the active-state example.

thank you!

Community feedback

naveen 10

@naveend3v

Posted

For Active state or hover while moving cursor to the Ethereum image we need to use ":hover" attribute with "div" containers.

kindly refer the w3schools how to create image hover text overlay effect below,

Ref -1 Ref -2

0

@quadri101

Posted

-The card looks squished on phones

You could have used rem for the container width instead of viewport-width

#To get the green filter effect over the image# -Wrap the image and an empty div in a div

  • give the parent div a position relative and child position absolute. -then
.child {
left:0;
top:0;
height:100%;
width:100%;
opacity:0;
background-color: color;
}
.parent:hover .child{
opacity: .3;
}

0

Please log in to post a comment

Log in with GitHub
Discord logo

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