Answers for "how to set a background image grid in bootstrap 4"

CSS
0

row background image bootstrap 5

<!-- Background image -->
<div class="bg-image"
style="background-image: url('https://mdbcdn.b-cdn.net/img/Photos/Others/images/76.jpg');
      height: 100vh">
</div>
<!-- Background image -->
Posted by: Guest on August-04-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

Code answers related to "how to set a background image grid in bootstrap 4"

Browse Popular Code Answers by Language