Design comparison
Solution retrospective
Tried this challenge, I face difficulty in a setting border-radius for bg-card-pattern.svg, this not match with my container border radius=6%. if any one has solution, it will helpful.
any feedback is welcome.....
Thanks.
Community feedback
- @pradeeps4iniPosted over 2 years ago
Hi, Rajesh. How are you?
For your border-radius issue:
-
You can use "border-radius: 15px 15px 0 0;" on the image element.
-
Or on the parent container. Set the property "overflow:hidden;". This way image will not expand outside the rounded corners. And you also won't have to set border-radius specifically on the image.
You should use semantic markup in your HTML. For the parent container you can use <section> tag or <main> tag, since card is the main content or the only content on the page.
Use "max-width: 100%;" on the images, this way image will always cover the entire parent elements width. And you won't have to worry about image being short to cover the parent element.
Marked as helpful1@Rajesh7rjPosted over 2 years ago@pradeeps4ini Thanks buddy π, it is helpful, I'm still in the beginning phase of css and figuring out few things. Your suggestion is very helpful. I definitely look on it.
Thanks again for help.............. βΊοΈβοΈ
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