Images
Image Rounded & Circle
Use class .rounded
and
.rounded-circle
.
Image thumbnails
In addition to our border-radius utilities, you can use
.img-thumbnail
to give an image a rounded 1px border appearance.
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.
Image Sizes
.avatar-sm
.avatar-md
.avatar-lg
.avatar-sm
.avatar-md
.avatar-lg
Media Object
The images or other media can be aligned top, middle, or bottom. The default is top aligned.
Top-aligned media
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
Center-aligned media
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
Bottom-aligned media
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.