Good morning. I have the following problem, an index file that shows photos with the url from a database, each picture is sorted in col-md-4 bootstraps or I have 3 photos per row, 3 down, 3 down and so on. The problem I have is that the photos are not the same size, some are square and others are horizontal, this causes me to disarm the bootstrap grid and I do not keep the photos ordered in 3 per row, no matter how img-responsive it is the same way the image of the image disarms the grid. Probe using a code that cuts according to an x axis and the photo but because all the photos are not the same, I do not know if what I have to show is up to the right, to the center below, etc. What I need is to be able to show the image from the center in the div and what comes out of the div that does not show it, as it has facebook for example in the galleries, as you can see the 3 images below are different, two square and one Rectangular but the preview shows me at 3 equal only that the rectangle shows the center. I found something called crop but it did not help me either, do they give me a hand? I know what I want to do but I do not know how to look for it.
Build this fast new:
<body>
<br><br>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="col-md-4"><img src="imagenPrueba/1.jpg" alt="" class="img-responsive" style="overflow: hidden"></div>
<div class="col-md-4"><img src="imagenPrueba/2.jpg" alt="" class="img-responsive" style="overflow: hidden"></div>
<div class="col-md-4"><img src="imagenPrueba/3.jpg" alt="" class="img-responsive" style="overflow: hidden"></div>
<div class="col-md-4"><img src="imagenPrueba/4.jpg" alt="" class="img-responsive" style="overflow: hidden"></div>
<div class="col-md-4"><img src="imagenPrueba/5.jpg" alt="" class="img-responsive" style="overflow: hidden"></div>
<div class="col-md-4"><img src="imagenPrueba/6.jpg" alt="" class="img-responsive" style="overflow: hidden"></div>
</div>
</div>
</div>
If the images are not the same, do not show them in a square: