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

nftPreviewCardComponent

Ham 340

@hmac100

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


What are you most proud of, and what would you do differently next time?

I think it turned out okay - don't currently know enough to assess how I'd do it differently - perhaps use Javascript for the overlay .

What challenges did you encounter, and how did you overcome them?

The overlay was the main issue - not sure if I should say this - but checked out W3Schools and they had the exact solution for an overlay with icon using just HTML and CSS.

What specific areas of your project would you like help with?

In this particular challenge I reckon the class naming could have been clearer , but generally speaking , other options for creating more concise code.

Community feedback

P
yas-avocad 380

@yas-avocad

Posted

Hey!

You should set a max-width to your p element, so that when the size of the browser gets smaller, the container doesn't get narrower and narrower. You can probably set the max-width to the same width as the image.

:)

0

Ham 340

@hmac100

Posted

Hi yas-avocad - thanks so much for your helpful comment. I really appreciate your time to check out my code and give some advise : ) @yas-avocad

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