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

@Darlenequame

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


I had a very hard time implementing the hover on the main image to align with the image. Any advice is very much welcome.

Community feedback

@0xabdulkhaliq

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have some recommendations regarding your question that I believe will be of great interest to you.

CSS 🎨:

  • "I had a very hard time implementing the hover on the main image to align with the image"
  • Looks like you already implement the right method but the issue is you overused absolute position's properties like top and left etc.
  • You can quickly fix the misplaced image by removing the following code from css
hero-image div:hover::before {
  top: 6.06rem;
  left: 36.5rem;
  • You can able to see the changes after removing these two style rules. .

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

Marked as helpful

1

@Darlenequame

Posted

@0xAbdulKhalid Thank you it works just as you explained.

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