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

using CSS Flex tried my best

Enis67 140

@Enis67

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 do the hover effect, tried really my best. Please, help me. Further need more advice and tips with coding skills.

Community feedback

JEVN-MVRC 160

@Jean-Marc18

Posted

Hello Enis67 👋. Congratulations on successfully completing the challenge! 🎉 I have other recommendations regarding your code that I believe will be of great interest to you.

Try to do that :

HTML :

<div class="hiding">
    <img src="images/image-equilibrium.jpg" alt="image-equilibrium">
    <div class="background">
      <img class="hide" src="images/icon-view.svg" alt="icon-view">
    </div>
  </div>

CSS :

.hiding{
	position: relative;
	border-radius: 0.8rem;
}
.background{
	position: absolute;
	height: 99%;
	width: 100%;
	top: 0;
	background: hsla(178.1, 100%, 50%, 0.47);
	border-radius: 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity : 0;
}
.background:hover{
	opacity: 1;
}
.hide {
  /*All removed*/
}

I have'nt tested before sent you.

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