Design comparison
Community feedback
- @correlucasPosted about 2 years ago
๐พHi Uthman Babatunde Alimi, congratulations for your first solution!๐ Welcome to the Frontend Mentor Coding Community!
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:
1.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.2.Add
min-height: 100vh
to make the vertical alignment:.main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
3.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 - @utha007Posted about 2 years ago
I would appreciate it if any improvements on the structure of the code and output can be pointed out, and also if there is a more efficient way of writing the code. Thank you.
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