Product preview card component

Solution retrospective
How do you add the border to a picture?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @mason-dunn
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 anoverflow: hidden
property to your container. This will hide anything that does not fit inside your card.Good work, Mason
Marked as helpful
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