.img-thumbnail - Shapes an image to a thumbnail (borders) - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:img-thumbnail

Description

.img-thumbnail - Shapes an image to a thumbnail (borders)

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script>
</head><!--from  w  w w  .ja  va  2s . c  o m-->
<body>

<div class="container">
  <h2>Thumbnail</h2>
  <p>The .img-thumbnail class creates a thumbnail of the image:</p>
  <img src="https://www.java2s.com/style/demo/Opera.png" class="img-thumbnail" alt="test" width="304" height="236">
</div>

</body>
</html>

Related Tutorials