I know it's probably easy, but I can not focus the image. Using HTML5 and Bootstrap;
<div class="col-md-6 ">
<img src="../img/012.jpg" class="img-responsive" alt="titulo"/>
<div class="h-30"></div>
</div>
I leave the code without more. As I searched for class="img-responsive"
it causes a lot of problems when it comes to centering but it's what I'm looking for, I've already tried it in many ways, including this video which is quite recent.
Thanks.
Edit: I have managed to "center" the image. I put quotation marks because what I do is add these codes to bootstrap.min.css:
.centrar-2{display: block; padding-left: 200px;}
.centrar-1{display: block; padding-left: 250px;}
.centrar{display: block; padding-left: 300px;}
.centrar1{display: block; padding-left: 350px;}
.centrar2{display: block; padding-left: 400px;}
It is not the correct way because the images do not measure the same thing and I practically have to create a different property for each image, apart from not getting the exact center.
I put this because at least I have managed to move the image, in case someone comes up with an idea from this.
SOLUTION
Finally I solved it by adding the display: block; margin-left: auto; margin-right: auto;
properties to each col-md separately. For example, the col-md-6 would look like this:
col-md-6 {
width: 50%;
display: block;
margin-left: auto;
margin-right: auto;
}
It is responsive and adjusts the size of each image to the taste and focuses it. Perfect.