I keep trying to center my grid container (main) vertically but won't move. Tried with align-items and still won't move. Can anyone help me, please?
HTML:
<body>
<main>
<img
src="images/image-qr-code.png"
width="250px"
height="auto"
alt="Photo of QR Code"
/>
<h1>Improve your front-end skills by building projects</h1>
<p>
Scan the QR code to visit Frontend Mentor and take your coding skills to
the next level
</p>
</main>
CSS:
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
width: 1440px;
height: 900px;
font-family: "Outfit", sans-serif;
background-color: hsl(212, 45%, 89%);
}
main {
display: grid;
grid-template-columns: 250px;
background-color: white;
border-radius: 10px;
width: 300px;
height: 500px;
justify-content: center;
margin: auto;
}