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. This applies max-width: 100%; and height: auto; to the image so that it scales with the parent element.

...

                            
                              
                            
                          

Image thumbnails

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

...

                            
                              
                            
                          

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.

... ...

                            
                              
                            
                          
...

                            
                              
                            
                          

Shadows

By using our shadow classes you can add a shadow to the image. In the example below, we add shadow-2-strong class.

...

                            
                              
                            
                          

By adding .hover-shadow class to the element you can apply a shadow hover effect.

...

                            
                              
                            
                          

Ripple

You can change the image into a clickable element and apply a ripple effect to it by simply adding .ripple class.

...

                            
                              
                            
                          

Ripple

You can change the image into a clickable element and apply a ripple effect to it by simply adding .ripple class.

...

This is a mask effect


                            
                              
                            
                          

Hover effects

By using .hover-overlay class you can apply gentle and decorative hover effects to the image.


                            
                              
                            
                          

Shapes

By using border utilities you can change the shape of the image.

... ... ...