Image Classes in Bootstrap

While this tutorial has content that we believe is of great benefit to our community, we have not yet tested or edited it to ensure you have an error-free learning experience. It's on our list, and we're working on it! You can help us out by using the "report an issue" button at the bottom of the tutorial.

Apply helpful styles to your pictures using Bootstrap’s image classes:

<img src="..." alt="..." class="img-responsive">


Use .center-block to center an image horizontally with a .img-responsive class:

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

Here’s more!

Use these classes to polish the look of your images:

  • .img-rounded: Applies a slight curve to image borders.
  • .img-circle: Shapes your image into a circle.
  • .img-thumbnail: Gives your image a slight padding and a slick border.
Creative Commons License