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.
<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.
<img src="../assets/img/img1.png" 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/500/637382/fff" class="rounded float-left" alt=""><img src="https://via.placeholder.com/500/637382/fff" class="rounded float-right" alt="">
Background Image
Make image as background to your content using the helper or utilities classes.
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.
<figure class="pos-relative mg-b-0 wd-lg-50p">
<img src="https://via.placeholder.com/500/637382/fff" 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.
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.
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/500/637382/fff" 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>