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 Challenge using HTML and Vanilla CSS

Nahri Jae 30

@JaeZzZ

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


Could you advise me on how to do the image overlay? Instead of only covering the image, it is covering the entire card. I appreciate any help you can give me :)

Community feedback

Najib 130

@N4J13

Posted

You should add position: relative to the class image-container to apply overlay only to the image container. You added position: relative to the main-card and not image-container thats why the overlay covering entire card. Apart from that your design looks very good. Hope thats helps . . . . . .

Marked as helpful

1

Nahri Jae 30

@JaeZzZ

Posted

@N4J13 It turns out that I spelled image-container as img-container in my css so it was referring back to the position: relative on the main-card. I would not have caught that misspelling or gotten rid of the position: relative on the main-card without your help, so thank you so much Najib!! :)

1

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