Zauri Khutsishvili• 680
@zauri-khutsishvili
Posted
Instead of margins use flexbox. Remove the margins from the card and use the following on the body element.
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
That will position the card in the center of the viewport. To fix the attribution getting in the way you can use the following on it:
position: absolute;
bottom: 0;
Marked as helpful
0