Bootstrap Image Responsive

 

.img-responsive class makes an image responsive.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Bootstrap Images Example</title> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <img src="http://learnkode.com/files/Bootstrap.png" class="img-responsive" alt="Bootstrap" width="304" height="236" /> </div> </body> </html>
Output