Bootstrap Tutorial - Indent object list








The following code shows how to indent object list.

Example

<!--  w  w  w  .  j a v a 2s.  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="media">
        <a class="pull-left" href="#">
          <img class="media-object" src="http://placehold.it/30x30" alt="Syed Fazle Rahman">
        </a>
        <div class="media-body">
          <h4 class="media-heading">Awesome piece of work!</h4>
          <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>
          
          <!-- Second Media Object -->
          <div class="media">
                <a class="pull-left" href="#">
                  <img class="media-object" src="http://placehold.it/30x30" alt="Syed Fazle Rahman">
                </a>
                <div class="media-body">
                  <h4 class="media-heading">Awesome piece of work!</h4>
                  <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>
                </div>
              </div>
              
        </div>
      </div>

  </body>
</html>

Click to view the demo