Bootstrap 4 Img Responsive Class Example

In Bootstrap 3 you would use the class .img-responsive but in Bootstrap 4 this class name has been renamed to .img-fluid

View on codepen

How to create a responsive image in Bootstrap 4

.img-fluid

  <img src="https://dummyimage.com/1200x400/000/fff" alt="responsive image" class="img-fluid">

 

 



Written by: Jake Lett
I share digital marketing tips and HubSpot tutorials to help marketers and business owners grow their business.

Tags: , ,