img-thumbnail Bootstrap class

BootstrapWeb DevelopmentCSS Framework

Use the .img-thumbnail Bootstrap class to add thumbnail to images.

You can try to run the following code to implement the img-thumbnail class:

Example

 Live Demo

<!DOCTYPE html>
<html>
   <head>
      <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>
   </head>
   <body>
      <p>Styling images with Bootstrap</p>
      <h1>Original Image</h1>
      <img src = "https://www.tutorialspoint.com/videotutorials/images/tutorial_library_home.jpg">
      <h1>Thumbnail Image</h1>
      <img src = "https://www.tutorialspoint.com/videotutorials/images/tutorial_library_home.jpg" class = "img-thumbnail">
   </body>
</html>
raja
Published on 20-Jun-2018 07:19:11
Advertisements