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 preview card with hover states

@palmettophoto

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


All critique is appreciated. I really struggled with the hover state for the overlay. My initial solution using a background image (image with overlay already applied) worked on live server but not after upload to git. Thanks in advance for any suggestions, tips, guidance!

Community feedback

Hassia Issah 50,670

@Hassiai

Posted

Replace <div class="title"> with <h1> to fix the accessibility issues.

To center .card on the page using flexbox, replace the height in the body with min-height: 100vh.

increase the opcaity value of .overlay .hover to 0.9 so that the whit colore of the icon can be visible.

To center to icon in the overlay using position: absolute, give .icon a top and left value of 50% and transform: translate (-50%, -50%).

.icon{
position: absolute;
top:50%;
left:50%
transform: translate(-50%, -50%);
}

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

Marked as helpful

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