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

Preview-Card

@MohmedElshaarawy

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

@wellington-damasio

Posted

Almost perfert. Try switching the fixed width and height of the card for no height and padding. This will fix the content overflow problem.

From this:

main{
    width: 320px;
    height:70vh;
    background-color: var(--Very-dark-blue-card-BG);
    border-radius: 20px;
}

To this:

main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  max-width: 350px;
  padding: 24px;
  background-color: var(--Very-dark-blue-card-BG);
  border-radius: 20px;
}

The above code should center the card in the screen and fix the content overflow problem in the card. You did awesome for the rest!

You can reach out to me if you have any questions. Hope it helped you!

Marked as helpful

1

@MohmedElshaarawy

Posted

@wellington-damasio thank you for this information

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