Responsive image align center bootstrap 3

Konstantin Rusanov picture Konstantin Rusanov · Aug 27, 2013 · Viewed 859k times · Source

I do a catalog using Bootstrap 3. When displayed on tablets, the product images look ugly because of their small size (500x500) and a width of 767 pixels in the browser. I want to put the image in the center of the screen, but for some reason I can not. Who be will help solve the problem?

Screenshot of part of a product page with the product not centered underneath the headline

Answer

DHlavaty picture DHlavaty · Dec 5, 2013

There is .center-block class in Twitter Bootstrap 3 (Since v3.0.1), so use:

<img src="..." alt="..." class="img-responsive center-block" />