Quantom• 30
@Quantom223
Posted
wow, love it! but how did you make it centerd
0
@Quantom223, Hi there!
I usually use different methods for different cases.
In this case I put all my elements inside a <main>
element and then centered it using flex properties in body
:
body {
display: flex;
justify-content: center; /*Centering content horizontally*/
align-items: center; /* Centering it vertically (but it won't work without setting the height)*/
height: 100vh;
}
Thanks and good luck! ☺️
0
Quantom• 30
@Quantom223
Posted
Okay thanks@mahmoud-w-elgendy
0