is now part of Shuffle™. The new editor includes templates for Bootstrap, Bulma, Material-UI, and Tailwind CSS.
Switch to Shuffle →

Bootstrap class: .img-thumbnail

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

Preview

Thumbnail image

Check .img-thumbnail in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

Tips 💡

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