I am currently in the process of learning and I am facing some challenges with CSS. My goal is to centrally align all items within a div, as well as align pictures with text and have everything aligned to the left.
HTML
<div class='SectionTop'>
<div class='CardVisual'>
<p class='CardName'> <img src="templates/img/GlobePic.jpg" alt="" class="Pic"> Countries </p>
<p class='CardValue'> {{countryNumber}} </p>
</div>
<div class='CardVisual'>
<p class='CardName'> <img src="templates/img/BuildingPic.jpg" alt="" class="Pic"> Customers </p>
<p class='CardValue'> {{customerNumber}} </p>
</div>
</div>
CSS
.SectionTop {
width: 95%;
margin-left: 3%;
margin-right: 3%;
background-color: white;
border: 2px solid blue;
border-radius: 25px;
}
.CardVisual {
width: 15%;
display: inline-block;
text-align: center;
}
.Pic {
width: 30px;
height: 30px;
object-fit: cover;
margin-left: 20px;
align-items: center;
}