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

flexbox

Mark 170

@Mark-a-obrien

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


I couldn't get the eye to be fully visible because of the background opacity. I found sizing the image perfectly very difficult as well as aligning the eye perfectly.

Community feedback

Eduardo 910

@KTrick01

Posted

Hi! An easy fix for your problem is that instead of changing your #view opacity to .5 on hover, change it to opacity 1 and just lower the opacity of the background-color to .5, like this:

#view:hover {
  opacity: 1;
  background-color: hsl(178, 100%, 50%, .5);
}

This way the eye will be fully visible because you only will change the background color opacity, but not of the entire container! Hope that it helps!

PD: If you put border-radius: inherit; to your #view, it will have the same border radius that the image

Marked as helpful

1

Mark 170

@Mark-a-obrien

Posted

@KTrick01 Hello Eduardo, Thank you very much for the feedback and suggestions. I didn't know you could do that with the background, so it will definitely come in handy thanks. I didn't even think of inheriting the border so I'll do that from now on thanks.

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