Image Thumbnail with Bootstrap

To add a thumbnail to the image, use the .img-thumbnail Bootstrap class.

You can try to run the following code to add a thumbnail to images


Live Demo

<!DOCTYPE html>
      <title>Bootstrap Images</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>
      <p>Styling images with Bootstrap</p>
      <h1>Original Image</h1>
      <img src = "">
      <h1>Thumbnail Image</h1>
      <img src = "" class = "img-thumbnail">
Lakshmi Srinivas
Lakshmi Srinivas

Programmer / Analyst / Technician