Design comparison
Solution retrospective
Any comments? Thank you! ;)
Community feedback
- @correlucasPosted about 2 years ago
👾Hello Osama Salem, Congratulations on completing this challenge!
Great solution and great start! By what I saw you’re on the right track. I’ve few suggestions to you that you can consider to add to your code:
Use
<main>
instead of<div>
to wrap the card container. This way you show that this is the main block of content and also replace the div with a semantic tag.Add
min-height: 100vh
to make sure the component will be ever aligned center:body { min-height: 100vh; background-color: hsl(212, 45%, 89%); display: flex; justify-content: center; padding: 200px 5px 0px 5px; font-family: 'Outfit', sans-serif; align-items: center; }
Use units as
rem
orem
instead ofpx
to improve your performance by resizing fonts between different screens and devices. These units are better to make your website more accessible. REM does not just apply to font size, but to all sizes as well.✌️ I hope this helps you and happy coding!
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