Design comparison
Solution retrospective
I was able to complete the challenge close to the design. Next time I will more focus on learning about the positioning of the elements.
What challenges did you encounter, and how did you overcome them?Learned that if an element has padding applied let's say 20px on all sides and if we also apply the border-radius to less than 20px we might not see the rounded corners of that element because, The reason is that the rounded corners are created within the element's border-box, which includes padding. If the border radius is smaller than the padding, the curves fall entirely within the padding and become invisible. Increasing the border-radius allows the curvature to extend beyond the padding and become visually apparent.
What specific areas of your project would you like help with?Q. I am new to the CSS HTML I was somehow able to complete the challenge but I still don't know if this is the correct approach or not. Could anyone help me what could I have done better here?
Q. If I apply padding of 20px to an element and then I apply border-radius: 20px why the border does not appear rounded on my element?
Community feedback
- @herbertnikolajewskidciPosted 7 months ago
Different Background Color than the original
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