Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 4 years ago

NFT Preview Card Component

selehadin cyber•90
@selehadin-cyber
A solution to the NFT preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hii everyone

this challenge was both fun and ... a bit challenging. and it was my second challenge a couple of question that i have are

  1. the text in my p element looks bigger than the one in the design folder even though i am using the stated font size for paragraph which is 18px

2)the element that appears when hovering over the image doesn't cover the image under it perfectly. in spite of me trying width 100% and height 100% so i had to resort to position it absolutely incrementing or decrementing pixel by pixel until i was decently satisfied. is there an easier way to do this

  1. is absolute positioning frowned upon? i feel a bit guilty when using absolute positioning instead if trying to align it with flexbox or grid.

4)i feel like i have already used too many divs is this normal or against best practice?

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on selehadin cyber's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License