Design comparison
SolutionDesign
Solution retrospective
How do you add the border to a picture?
Community feedback
- @mason-dunnPosted over 2 years ago
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 helpful1@DonRicardoGPosted over 2 years ago@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 GitHubJoin 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