How do you make an image responsive in Bootstrap?
<img src="images/photo.jpg" class="img-fluid" alt="Responsive image">
Live preview
.img-fluid sets max-width: 100%; height: auto;. Other useful classes are .img-thumbnail, .rounded and .rounded-circle. See Images.
Learn more about the similar topics:
| Tutorials |
|---|
| No Content Found. |
| Exercises & Assignments |
|---|
| No Content Found. |
| Interview Questions & Answers |
|---|
| No Content Found. |