Design comparison
Solution retrospective
Can I get a better code in media query part or any other suggestions ?
Community feedback
- @MaritxxPosted over 2 years ago
Hi! While I don't think I have enough knowledge to help you with your media queries, here is something I think might be useful for you.
It is enough to add border-radius to your container (I would set it to the card div) instead of setting it to the image and content separately. When you do this, and add 'overflow: hidden' to the container as well, it will work! ^^ The reason this hasn't worked for you is that there is content in the div, by removing the overflow of it, the border-radius will work as intended. I only found this out today as well so thought I'd share this with you.
Good job on your solution!
Marked as helpful0
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