2015-05-19, 21:26:03
Images in Bootstrap 3 can be made responsive-friendly via the addition of the
class. This applies
,
and
to the image so that it scales nicely to the parent element.
To center images which use the
class, use
instead of
Code:
.img-responsive
Code:
max-width: 100%;
Code:
height: auto;
Code:
display: block;
To center images which use the
Code:
.img-responsive
Code:
.center-block
Code:
.text-center