Ali Ahmed• 680
@Dany-GitHub
Posted
it's better to remove the height from the main and center all contents in the body, by using flex or gird, like this
body {
display: flex;
justify-content: center;
align-items: center;
}
I see you used box-sizing in body to reset its properties, you can choose all elements to reset their properties as well like this
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
the * means assign all those properties to all elements Well done ❤✌, Happy coding
Marked as helpful
0