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

Desktop-First NFT-Card Challenge

@pragya703

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

Hassia Issah 50,670

@Hassiai

Posted

Replace <div class="wrapper"> with the main tag, and <h2> with <h1> to fix the accessibility issue. click here for more on web-accessibility and semantic html

There is no need to give the body a width and height value. There is no need to style .wrapper. Give the background-color you gave to .wrapper to the body.

To center .card on the page using flexbox, add min-height:100vh; display: flex; align-items: center: justify-content: center; with the body.

To center .card on the page using flexbox:
body{
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}

you forgot to add the overlay effect to the image.

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

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