Svitlana Suslenkova• 3,510
@SvitlanaSuslenkova
Posted
body { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; } Try this to align(top-bottom) and justify(left-right) your project to the center. It applies to the parent component(body). You can use grid instead of flex too(with some changes). Hope you found this comment helpful :)
Marked as helpful
0
phucb2103436• 20
@phucb2103436
Posted
It's very helpful! Thank you so much! @SvitlanaSuslenkova
0