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 with CSS Flexbox

@patricksanto

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'm having some issues creating the Avatar's profile picture border, once the png is a square and all I want is creating a rounded border. trying to create a ::before circle content, 1px bigger than the img, and put it bellow , but this function didn't work for img elements .

Would be great to have some help here.

Community feedback

@ojaswishivam

Posted

Hey @patricksanto, for creating a circular border you can follow these steps:

  • Assign a border to your .user .avatar
  • border: 2px solid white;
  • Now give it a border-radius of 50 px
  • border-radius: 50px;

Happy Coding😄

Marked as helpful

1

@patricksanto

Posted

@ojaswishivam Thank you so much Ojaswi ! that's it

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