Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 2 years ago

Css3, HTML5, flexbox, pseudo-class and pseudo-elements

IlnaraAckermann•70
@IlnaraAckermann
A solution to the NFT preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Any suggestion, i'm appreciate.

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Vanza Setia•27,715
    @vanzasetia
    Posted about 2 years ago

    Hi, IlnaraAckermann! 👋

    Great job on creating the overlay for the Equilibrium image! 👏

    You have wrapped the image with an interactive element and used pseudo-elements to create the overlay. It is rare to see a good solution for the overlay.

    I recommend adding an overflow: hidden to the .image-link. Then, move the border-radius: 0.5rem from the .image to the .image-link. This way, the overlay will have rounded corners.

    Also, In your CSS, I notice this selector .nft-card .image-link .image while that only needs to be .image. Don't nest selectors unnecessarily. Remember to keep the CSS specificity as low and flat as possible.

    Then, make the <a> a child element of the <h1>. <h1> should not be a child element of <a> element. It results invalid HTML. Caninclude

    I hope this helps. Happy coding! 😄

    Marked as helpful

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
Frontend Mentor logo

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

Frontend Mentor

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

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

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub