Bootstrap class: .img-thumbnail

<img class="img-thumbnail" src="/placeholder/pictures/image.svg" alt="Thumbnail image">

Preview

Thumbnail image

Sass source

/* _images.scss:14 */
.img-thumbnail {
  padding: $thumbnail-padding;
  background-color: $thumbnail-bg;
  border: $thumbnail-border-width solid $thumbnail-border-color;
  @include border-radius($thumbnail-border-radius);
  @include box-shadow($thumbnail-box-shadow);

  // Keep them at most 100% wide
  @include img-fluid;
}

Uses variables

Code copied to the clipboard.

Copying failed

/* _images.scss:14 */
$thumbnail-padding
$thumbnail-bg
$thumbnail-border-width
$thumbnail-border-color
$thumbnail-border-radius
$thumbnail-box-shadow

More in Bootstrap Images