I am unable to align the images to the center of the page ,I dont want to give a fixed values(margin) to place the images at the centre of the page, this is the piece of code I wrote but I am unable to centre the images.(I have also provided the link below for clear explanation)
.row_of_services {
display: flexbox;
place-items: center;
}
.row_image {
padding-top: 15px;
text-align: center;
display: inline-block;
width: 20%;
}
figure {
overflow: hidden;
margin: 0 10px;
border-radius: 25%;
}
<div class="row_of_services">
<div class="row_image">
<figure>
<img src="images/wedding1.jpg" alt="wedding services">
</figure>
<h3>At Weddings</h3>
<p>Start giving healthy products to newly wed</p>
</div>
<div class="row_image">
<figure>
<img src="images/wedding1.jpg" alt="wedding services">
</figure>
<h3>At Weddings</h3>
<p>Start giving healthy products to newly wed</p>
</div>
<div class="row_image">
<figure>
<img src="images/wedding1.jpg" alt="wedding services">
</figure>
<h3>At Weddings</h3>
<p>Start giving healthy products to newly wed</p>
</div>
</div>
this is the output I have received but I am unable to center those three images: https://codepen.io/gladwin-james/pen/dyOOpYe. I have also tried other answers from stackoverflow but I couldnt find this. Please help.