Design comparison
Solution retrospective
Hello, world!
How do you set the border-radius for a container (so it shows), I have search the internet but I can't seem to figure it out. In the last challenge I cheated by setting the border-radius for the top and right of the first card, bottom and left for the last card for mobile and the opposite for the desktop version.
Thanks in advance <3
Community feedback
- @reydelshitPosted about 3 years ago
i used
overflow: hidden;
to the father div to make the border radius visibleMarked as helpful1 - @kens-visualsPosted about 3 years ago
Hey @celumusaBDuma 👋🏻
I have some suggestions to help you fix a couple of problems related to accessibility, HTML and some other issues.
- For accessibility issues, there are a couple of things that you should fix. First,
<div class="features">...</div>
should be<main class="features">...</main>
, Second, you cannot have more than one<header>
or<footer>
tags, I'd suggest just replacing them with regular<div>
s. After you fix them, those accessibility issues should be gone. Please don't forget to generate a new report after fixing them. - I noticed that you're missing the fonts, they're really easy to add, and you can find correct ones in your
style-guide.md
. Open them in Google Fonts and then add the links to thehead
of your document, as you'd do with CSS links. - Lastly, this is more of a personal opinion, I'd slightly change
padding
andborder-radius
on buttons to something like this,
padding: 1.5rem 2rem; border-radius: 40px;
I hope this was helpful 👨🏻💻, you did a really good job. Cheers 👾
2 - For accessibility issues, there are a couple of things that you should fix. First,
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