Fatlind Shehu• 2,230
@fatlindshehu
Posted
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 with rem
or em
, in bigger projects px
can make your life harder, so keep that in mind!
Keep it up & happy coding...
Marked as helpful
0