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

utilizei conceito de flexbox,boxmodel e responsividade

@LucasBispoMenezes

Desktop design screenshot for the NFT preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Travolgi 🍕 31,420

@denielden

Posted

Hi Lucas, I took some time to look at your solution and you did a great job!

Also I have some tips for improving your code:

  • img element must have an alt attribute, it's very important!
  • to make it look as close to the design as possible set width: 100%; to .img-main class and remove height
  • remove all margin from container class because with flex they are superfluous
  • add flexbox align-items: center property to the main tag for center the card horizontally
  • after, add min-height: 100vh to main tag because Flexbox aligns child items to the size of the parent container
  • try to add a little transition on the element with hover effect

Overall you did well 😉

Hope this help and happy coding!

Marked as helpful

1

@LucasBispoMenezes

Posted

@denielden Thank you very much friend, I will study a little more about each point presented in your feedback, to improve both this project and future projects :rocket looks good.

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