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

Responsive NFT Card Component using [email protected]

@DruxAMB

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


Best practices for responsive designs is using css frameworks like bootstrap, tailwind, material ui for your projects.

Community feedback

@MaximilianoDanielGarcia

Posted

Hi @DruxAMB, good job!

If you are wondering how to center the card, just add this:

body {
    display: grid;
    place-items: center;
    min-height: 100vh;
}
  • Remove padding: 30rem; from body.
  • Add a width: 350px; to #card

Finally, you can move to a better position your attribution part.

.attribution {
    position: absolute;
    bottom: 25px;
}

I hope these suggestions are helpful to you.

Marked as helpful

0

@DruxAMB

Posted

@MaximilianoDanielGarcia, thanks man but my project is already centered. Marked as helpful

0

@DruxAMB

Posted

@MaximilianoDanielGarcia, thanks man but my project is already centered. Marked as helpful

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