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

CSS Flexbox, Responsive & Variable

@KareeMagdyy

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

Teddy 290

@tedaussie75

Posted

Great Job ! It looks very nice ! If you want to fix the glitch on the card hover you can add these changes bellow to your code :

  • .img-container { border-radius: 1rem; }

  • .card-img { display: block; }

  • .view-hover { height: 100%; }

Comment : /* .view-hover => height: 99% is not working it is making an issue here */

Hope it would help you !

Marked as helpful

1

@KareeMagdyy

Posted

@tedaussie75 Thanks Teddy I spent about an hour thinking about it, Thanks so much this fixed the Glitch:D

1
Teddy 290

@tedaussie75

Posted

@KareeMagdyy No worries ! I went through the same issue ahah

The main issue was the image container, it was a little bit bigger than the image.

By switching the images display to block, the image and its container have the same size.

And the border radius need to be applied to both the image and the container to make it look Nice !

I'm glad that it works for you too ;)

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