@mohammedlahboub
Posted
Hi @maria-js you did great on your first project !!
To Center the card (horizontally and vertically) u can use display flex on the <body>
instead on margins on the <header>
body{
` width: 100vw; ` to make body width equal to screen width
` height: 100vh; ` to make body height equal to screen height
` display: flex; ` set display mode for body as flex
` align-items: center; ` to center items inside the body vertically
` justify-content: center; ` to center items inside the body horizontally
}
Marked as helpful
@maria-js
Posted
@mohammedlahboub Thank you very much for your comment, I will take it into account for future exercises. :)