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 HTML, CSS and Flexbox

P
Christina 190

@codercreative

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


The overlay posed a bit of a problem for me (the solution is a bit "hacky"). I am happy to hear any suggestions for improvement.

Community feedback

Hyron 5,870

@hyrongennike

Posted

Hi @codercreative,

Congrats on completing the challenge

I see you're using margin to try and center the card on page, there is a easier way to do that you can add the following to center the card in the middle of the page.

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

main.container.margin-bottom {
    margin: 0;
}

Marked as helpful

0

P
Christina 190

@codercreative

Posted

Hi @hyrongennike -- thank you so much for taking the time to help me out! I will update my project with your suggestions.

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