Bootstrap Tutorial - Create thumbnail








The following code shows how to create thumbnail.

Example

<!--   w  w w. j av a  2 s. c o  m-->
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet"
  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet"
  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script
  src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script
  src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

</head>
  <body>
    <div class="container">
      <div class="row">
        <div class="col-xs-3">
          <div class="thumbnail">
            <img src="http://placehold.it/300x300">
            <div class="caption">
              <h3>SitePoint</h3>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
              <p><a href="#" class="btn btn-primary">Read More</a></p>
            </div>
          </div>
        </div>
        <div class="col-xs-3">
          <div href="#" class="thumbnail">
            <img src="http://placehold.it/300x300">
            <div class="caption">
              <h3>Apple</h3>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
              <p><a href="#" class="btn btn-primary">Read More</a></p>
            </div>
          </div>
        </div>
        <div class="col-xs-3">
          <div href="#" class="thumbnail">
            <img src="http://placehold.it/300x300">
            <div class="caption">
              <h3>Google</h3>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
              <p><a href="#" class="btn btn-primary">Read More</a></p>
            </div>
          </div>
        </div>
        <div class="col-xs-3">
          <div class="thumbnail">
            <img src="http://placehold.it/300x300">
            <div class="caption">
              <h3>Microsoft</h3>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
              <p><a href="#" class="btn btn-primary">Read More</a></p>
            </div>
          </div>
        </div>
      </div>
  </body>
</html>

Click to view the demo