Stephan• 60
@Kyr27
Posted
Add min-height: 100vh
to your body where flex is in order to center it:
body{
background-color: hsl(212, 45%, 89%);
display:flex;
align-items:center;
justify-content:center;
min-height: 100vh;
/*padding:100px;*/
Marked as helpful
1
Satyam Raj• 160
@Satyaaam
Posted
@Kyr27 Bro why it was not working earlier ? Thanks it worked now by your method.
1