Design comparison
Solution retrospective
I didn't know how to position the background correctly, any suggestions?
Community feedback
- @VenusYPosted 9 months ago
Great work on this challenge! It's responsive, and you've done a good job of replicating the design.
I did notice one small thing though, which is that the buttons aren't the same sizes, nor are they square.
This is happening because you're allowing their sizes to be determined by the icon sizes and the padding around them.
To fix this, you could set a hard-coded width and height, and then center the icons inside them with flexbox:
.card__link { width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; }
I also noticed that the content gets partially cut off when you shrink the height of the viewport enough.
To fix this, you could simply add replace
height
withmin-height
for the body element:body { height: 100vh; ❌ min-height: 100vh; }
Other than that, this is a very good solution!
Hope this has been helpful! :)
Marked as helpful1
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