Design comparison
SolutionDesign
Community feedback
- @fatlindshehuPosted over 2 years ago
Hi @Nkwor-Jane
Nice work with the component, centering it using flexbox was a great solution, I would add just a tiny thing to make it great:
- Add
height: 100vh;
to the body in order for the component to be centered vertically in the proper way.
I also would advise you not to use
px
units, instead, replace them withrem
orem
, in bigger projectspx
can make your life harder, so keep that in mind!Keep it up & happy coding...
Marked as helpful0 - Add
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