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 solution with HTML, SVGs and CSS using Flexbox for alignment

Carlos Al 160

@crsaele

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


The hardest part of the challenge was making the image container turn cyan and align the svg view icon right at the center when activated with the hover pseudo class, so i had to learn how to make an overlay class, be not visible and then turn visible only when hovered.

The shadows around the card were sorta tricky to think about so i had to learn more about the box-shadow property.

Used a lot of flexbox to align elements vertically and horizontally.

I could've used better css practices like using rem's and em's for padding margin or font instead of absolute units like pixels.

If anyone could help me with any suggestion i'd appreciate it 🤭

Community feedback

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