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 using HTML and CSS

@jvilla0713

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 struggled with adding the cyan transparency over the image on hover, any suggestions on how to accomplish that?

Also, aligning the icon and text at the bottom was another challenge I faced that I know I didn't quite get right.

I am sure there is more I'm overlooking. This is only my second time trying to create something with CSS, I think I did pretty ok

Community feedback

Godwin 100

@aeorck

Posted

Hi Janessa, you should read more on CSS's position, especially how relative and absolute works together to achieve such effect on the hover state.

Rather than use <hr>, nest "eth" and "clock-days" container in a div block, give it the following css properties: display:flex; justify-content:space between; border-bottom:1px solid grey; (whatever color it is). Also, don't forget to specify a width for the container.

You can check out my code on GitHub https://github.com/aeorck/femnft. CHeers!

0
P

@Ibarra11

Posted

I think one approach to handle aligning the icon and the text is to nest them within a flex container and align them in the center vertically. Also, it might be appropriate to place the icon and the text in a footer element. Here is a link to a code sandbox where I aligned the icon and the text if you want to take a look. I did have to override some margin properties and display properties as well. https://codesandbox.io/s/tender-scott-huyce1?file=/index.html

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