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-main

Mostafa 160

@Mostafa-Ayman1

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


is it good ?

Community feedback

Hassia Issah 50,670

@Hassiai

Posted

To center the section on the page using flexbox, replace the height in the body with min-height: 100vh.

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

Give .image a max-width of 100% and the img a width and height of 100%.

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

1
Mostafa 160

@Mostafa-Ayman1

Posted

Thank you very much for that advice, and I have already applied those tips. You can see them here and give me a review on them https://www.frontendmentor.io/solutions/qrcodecomponentmain-uh1bAIMHZ8

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