Images

Documentation and examples for opting images into responsive behavior (so they never become larger than their parent elements) and add lightweight styles to them—all via classes.


Responsive Images

Images in Bootstrap are made responsive with .img-fluid. max-width: 100%; and height: auto; are applied to the image so that it scales with the parent element.

Responsive image
<img src="..." class="img-fluid" alt="Responsive image">

Image Thumbnails

In addition to our border-radius utilities, you can use .img-thumbnail to give an image a rounded 1px border appearance.

Responsive image
<img src="https://via.placeholder.com/500" class="img-thumbnail" alt="Responsive image">

Aligning Images

Align images with the helper float classes or text alignment classes.

<img src="https://via.placeholder.com/640x426" class="rounded float-left" alt="">
<img src="https://via.placeholder.com/640x426" class="rounded float-right" alt="">

Background Image

Make image as background to your content using the helper or utilities classes.

Responsive image
What Does Royalty-Free Mean?

Royalty free means you just need to pay for rights to use the item once per end product. You don't need to pay additional or ongoing fees for each person who sees or uses it.

<figure class="pos-relative mg-b-0 wd-lg-50p">
  <img src="..." class="img-fit-cover" alt="Responsive image">
  <figcaption class="pos-absolute a-0 pd-25 tx-white-8">
    <h6 class="tx-white tx-semibold mg-b-20">What Does Royalty-Free Mean?</h6>
    <p class="mg-b-0">...</p>
  </figcaption>
</figure>

Image Toolbar

Display toolbar by using button group component to image with the help of utilities classes.

Responsive image
<figure class="pos-relative mg-b-0 wd-lg-50p">
  <img src="https://via.placeholder.com/640x426" class="img-fit-cover" alt="Responsive image">
  <figcaption class="pos-absolute b-0 l-0 wd-100p pd-20 d-flex justify-content-center">
    <div class="btn-group">
      <a href="" class="btn btn-dark btn-icon"><i data-feather="download"></i></a>
      <a href="" class="btn btn-dark btn-icon"><i data-feather="edit-2"></i></a>
      <a href="" class="btn btn-dark btn-icon"><i data-feather="maximize-2"></i></a>
      <a href="" class="btn btn-dark btn-icon"><i data-feather="trash-2"></i></a>
    </div>
  </figcaption>
</figure>

Caption on Hover

Display caption of an image by hovering the image with the use of utilities class.

Responsive image
What Does Royalty-Free Mean?

Royalty free means you just need to pay for rights to use the item once per end product. You don't need to pay additional or ongoing fees for each person who sees or uses it.

Responsive image
What Does Royalty-Free Mean?

Royalty free means you just need to pay for rights to use the item once per end product. You don't need to pay additional or ongoing fees for each person who sees or uses it.

<figure class="img-caption pos-relative mg-b-0">
  <img src="https://via.placeholder.com/640x426" class="img-fit-cover" alt="Responsive image">
  <figcaption class="pos-absolute a-0 wd-100p pd-20 d-flex flex-column justify-content-center bg-white-9 transition-base op-0">
    <h6 class="tx-inverse tx-semibold mg-b-20">What Does Royalty-Free Mean?</h6>
    <p class="mg-b-0">...</p>
  </figcaption>
</figure>
<script>
  $(function(){
    'use strict'

    $('.img-caption').on('mouseover mouseout', function(){
      $(this).find('figcaption').toggleClass('op-0');
    });

  });
</script>

Image Group

This is a group of images overlapping each other.

<div class="img-group">
  <img src="..." class="img wd-60 ht-60 rounded-circle" alt="">
  <img src="..." class="img wd-60 ht-60 rounded-circle" alt="">
  <img src="..." class="img wd-60 ht-60 rounded-circle" alt="">
  <img src="..." class="img wd-60 ht-60 rounded-circle" alt="">
  <img src="..." class="img wd-60 ht-60 rounded-circle" alt="">
  <img src="..." class="img wd-60 ht-60 rounded-circle" alt="">
</div>