I am new on this forum and don't really know how to use it well,
I am also starting learning front end,
For my project i am trying to put an image in the center of the page (vertically and horizontally)
But I only managed to center it horizontally.
Here is my html code :
.fondCarte {
display: flex;
justify-content: center;
align-items: center;
}
.fond {
width: 400px;
aspect-ratio: 2 / 3;
border-radius: 20px;
box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}
<body>
<div class="fondCarte">
<img src="images/fond.jpg" alt="fond du cv" title="fond du cv" class="fond">
</div>
</body>
And the result : result
Can someone help me ?
Thanks