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.
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.
<img src="..." class="img-fluid" alt="Responsive image">
In addition to our border-radius utilities, you can use .img-thumbnail
to give an image a rounded 1px border appearance.
<img src="https://via.placeholder.com/500" class="img-thumbnail" alt="Responsive image">
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="">
Make image as background to your content using the helper or utilities classes.
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>
Display toolbar by using button group component to image with the help of utilities classes.
<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>
Display caption of an image by hovering the image with the use of utilities class.
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.
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>
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>