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

Product preview card component

@DonRicardoG

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


How do you add the border to a picture?

Community feedback

Mason Dunn 100

@mason-dunn

Posted

Hi Ricardo,

One way you could add a rounded border to your image is by using the border-radius css property and apply it to only the sides you need rounded. A simpler solution would be to add an overflow: hidden property to your container. This will hide anything that does not fit inside your card.

Good work, Mason

Marked as helpful

1

@DonRicardoG

Posted

@mason-dunn Thank you, Mason, this helped a lot! I fixed the problem with overflow: hidden.

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