Answers for "images grid bootstrap"

1

img class bootstrap

<!-- Circuler Image -->
 <img src="cinqueterre.jpg" class="img-circle" alt="Cinque Terre"> 
 
<!-- Image With some border-raduis property  -->
 <img src="cinqueterre.jpg" class="img-rounded" alt="Cinque Terre"> 
 
<!-- Image like thumbnail  -->
 <img src="cinqueterre.jpg" class="img-thumbnail" alt="Cinque Terre">
Posted by: Guest on March-15-2021
0

background image for div in grid system bootstrap

.img {
    margin-right: -15px; // Remove right gap
    margin-left: -15px;  // Remove left gap
    padding-bottom: 62.5%; // ratio is 16:10
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}
Posted by: Guest on May-13-2020

Browse Popular Code Answers by Language