@ify47
Posted
You should move all the codes in your main css to body, also add a flex direction: column to it and make your min-height: 100vh, By applying these styles to the body element, you create a flex container that centers its child elements both vertically and horizontally, I hope this has been helpful. Overall, this is a good solution :)
Marked as helpful
@DevDan21
Posted
@ify47 I tried it out and it works! Thanks so much for your help. Not only did you help to clean up my code a bit but also I've learnt something new. I appreciate that. Thank you! :)