Images

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

On this page

Responsive images

Images in Bootstrap are made responsive with fluid attribute.

Responsive image
vue

Image thumbnails

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

200x200
vue

Aligning images

the Horizontal centering margin utility class .

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

block -level images can be centered using the Horizontal centering margin utility class .

200x200200x200
vue
200x200
vue
200x200
vue
...
vue

If you set the srcset attribute in the picture component, you can omit the <source> element.

...
vue
On this page