Docly

Did You Know?

Image

Welcome to Docly ! Documentation and examples for typography, including global settings, headings, body text, lists, and more.

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.

Responsive image
                                    
                                        <img src="..." class="img-fluid" alt="Responsive image" >
                                    
                                

Images Shapes

Easily create images in different shapes with adding one class to the <img> tag.

Round image
Circle image
Thumbnail
                                        
                                            <img src="..." class="rounded" alt="Round image" >
                                            <img src="..." class="rounded-circle" alt="Circle image" >
                                            <img src="..." class="img-thumbnail" alt="Thumbnail" >
                                        
                                    

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.

... ...
                                        
                                           <div class="overflow-hidden mb-20">
                                                <img src="assets/images/thumb/l-1.jpg" class="rounded float-left" alt="...">
                                                <img src="assets/images/thumb/l-2.jpg" class="rounded float-right" alt="...">
                                            <div>
                                        
                                    
...
                                        
                                           <div class="overflow-hidden mb-20">
                                                <img src="assets/images/thumb/l-1.jpg" class="rounded mx-auto d-block" alt="...">
                                            <div>
                                        
                                    
...
                                        
                                           <div class="text-center mb-20">
                                                <img src="assets/images/thumb/l-1.jpg" class="rounded" alt="...">
                                            <div>
                                        
                                    
On this page: