I am having trouble centering the container in my HTML code HTML code:-
<body>
<div class="container">
<div class="image">
<img src="./images/image-qr-code.png" alt="qrcode">
</div>
<div class="heading">
<h2>Improve your front-end skills by building projects</h2>
<p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
</div>
</div>
</body>
CSS code:-
.container{
background-color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
max-width: 400px;
padding: 10px;
border-radius: 18px;
text-align: center;
}
I have attempted to position the container div at the center, but it's not aligning properly