Design comparison
SolutionDesign
Solution retrospective
I was not able to add border-radius to the top of the image alone. The border-radius affected all sides of the image. I would like to have a border-radius on the top section alone. How can I do that? Thanks.
Community feedback
- @costelloewardPosted over 3 years ago
Hi, great job! Border-radius can take multiple values in the same way as margin and padding. So you can use something like this: border-radius: 0.5rem 0.5rem 0 0; I use rem, but this works with other unit types as well.
Marked as helpful0 - @authenticoderPosted over 3 years ago
Thanks a ton. That solved the problem. I never thought border-radius can be used like that before. Thanks again.
1
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