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 Component using CSS Flexbox

Dairon Canelโ€ข 360

@dairon-canel

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

Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

๐Ÿ‘พHello Dairon Canel, congratulations for your solution!

Your component is really tiny in comparison with the design files. To fix this behavior you need to avoid using width in the inner content and add max-width: 350px (this is the container size).

Doing that you'll make sure that the container has its proper size, to have more control you can use box-sizing: border-box and work the elements inside just giving paddings and not width.

Doin'g that you sell that the component will get closer to the design file.

Hope it helps and happy coding!

Marked as helpful

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