Design comparison
Solution retrospective
Hi there,
Had problems making the page responsive with difficulty in making the background height to fit the whole screen on different screen sizes
Any other suggestions are appreciated
Community feedback
- @sircarloschavesPosted 12 months ago
Hi brother!
If you pay attention, you will notice that the internal
border-radius
is different from the externalborder-radius
, in different layouts you will also notice this, that if you apply the sameborder-radius
that is in the parent to the child, it will look different even though it's the same number.There is a 'hack' to smooth out this difference, which is as follows: You will do a calculation, which in this case will be the external
border-radius
- thepadding
or the space between the external border and the internal border.If you want to know more, read this article that talks about it: Perfect nested border radius in CSS
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