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!

KJ 230

@Karthick-J-11

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


How is this? I had a hard time setting a proper height. please, give me a suggestion if you have any! Thank You.

Community feedback

@LeonardoMancilha

Posted

Hey, KJ! I found a solution for you:

main { height: 900px; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 20px; }

@media only screen and (min-width: 1000px) main { max-height: 713px; margin: 0 auto; }

On tag main, you remove the width: 1440px; And on only screen and (min-width: 1000px) you put these settings on top.

1

KJ 230

@Karthick-J-11

Posted

@LeonardoMancilha Thank you so much! I'll try that. I appreciate your help.

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