- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Make an image responsive with Bootstrap
To make an image responsive in Bootstrap, add a class .img-responsive to the <img> tag. This class applies max-width: 100%; and height: auto; to the image so that it scales nicely to the parent element.
The following is how you can simply make an image responsive −
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <img src = "https://www.tutorialspoint.com/python/images/python_data_science.jpg" class = "img-responsive" alt = "Online Training"> </body> </html>
- Related Articles
- How to make an image responsive in HTML?
- Make image round with Bootstrap
- How to scale down an image with CSS to make it responsive
- Responsive grid with Bootstrap
- Create Responsive Table with Bootstrap
- Responsive Images in Bootstrap with Examples
- Make an element invisible with Bootstrap
- Make an Ordered list with Bootstrap
- Bootstrap responsive utility classes
- Bootstrap table-responsive class
- How to create a responsive image with CSS?
- How to create a responsive website with Bootstrap 4?
- Responsive Video or Slideshow Embeds in Bootstrap with Examples
- Image Thumbnail with Bootstrap
- Make an element look like a heading with Bootstrap

Advertisements