Design comparison
Solution retrospective
I had this doubt, the only way to apply border-radius to the entire grid is to appliy it on every single item separetly?
Any feedback about the project will be welcome :)
Community feedback
- @PeresvetIvanPosted over 4 years ago
Hello, Dulce! You can set border-radius to parent element (grid container in this case), and also set 'overflow: hidden'. This way, all child elements will not go beyond the parent element, which means that all their corners will be cut automatically according to the border-radius property on the parent element.
0 - @DiarrahPosted over 4 years ago
There's definitely a way to get each corner of a grid rounded. Just have a container (set to display grid) & then put a border-radius on that whole container.
0@iamdulcePosted over 4 years agoI tried this way, but for reason was only taken by the container and not the items inside:/
0 - @nicm42Posted over 4 years ago
This looks great, I like it.
Only small thing is that setting width of 350px on mobiles will be a problem for anyone with a mobile smaller than that (the smallest iPhones are 320px).
0@iamdulcePosted over 4 years agoSo glad you liked it! And thanks for the info about screen size, I'll have it in mind to make it right in the next project
0 - @vr3372Posted over 4 years ago
Hi Dulce
Yes you are correct.Its like three div & give border-radius seperatly.
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