Answers for "bootstrap stretch image to fit div"

0

bootstrap 4 image fit to div

<div class="container">
    <div class="col-md-4 px-0">
        <img src="images/food1.jpg" class="img-fluid">
    </div>
</div>
Posted by: Guest on September-23-2021
0

how to stretch image in size using bootstrap

you have to set the width of image to 100%, for that you can use Bootstrap class "w-100". keep in mind that "container-fluid" and "col-12" class sets left and right padding to 15px and "row" class sets left and right margin to "-15px" by default. make sure to set them to 0.
Posted by: Guest on April-22-2021

Code answers related to "bootstrap stretch image to fit div"

Browse Popular Code Answers by Language