Bootstrap Images - Responsive images in Bootstrap with Examples
Bootstrap Images
- Documentation and examples for choosing images into responsive behavior and add lightweight styles to them—all via classes.
Bootstrap Responsive Images
- Images come in all sizes. Responsive images automatically adjust to fit the size of the screen.
- Create responsive images by adding an .img-fluid class to the <img> tag. The image will then scale nicely to the parent element.
- The .img-fluid class applies max-width: 100%; and height: auto; to the image.
Sample Code
Output
Bootstrap Image Thumbnails
- In addition to our border-radius utilities, you can use .img-thumbnail to give an image a rounded 1px border appearance.
Sample Code
Output
Bootstrap Aligning Images
- Align images with the helper float classes or text alignment classes. block-level images can be centered using the .mx-auto margin utility class.