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, overlay, variables, flexbox

kjm2023 40

@kjm2023

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


Is there a specific formula to create a circular border? What is the best way to maintain the size of the card regardless of screen size?

Community feedback

@NParker33

Posted

Hey, good job taking on this challenge!

In order to have a circular border when the border-radius is applied, the image will need to be square. Since this particular challenge doesn't require responsiveness, I would recommend setting a fixed width and height for your image. For example:

.creator img { width: 40px; height: 40px; border-radius: 100%; }

For the card size, there are a few different ways you could go about it. One possibility is to use a fixed pixel size for the width and padding instead of using percentage.

Example: main { width: 300px; padding: 15px; }

Marked as helpful

0

kjm2023 40

@kjm2023

Posted

@NParker33 Thank you so much! I am going to rework this. I appreciate your feedback.

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