.media-list - Nested media lists - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:media-list

Description

.media-list - Nested media lists

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/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head><!--  w w w.  ja  va  2 s .  com-->
<body>

<div class="container">

<h2>Media List</h2>
<p>This is a test. This is a test. This is a test.</p>
<hr>

<ul class="media-list">
  <li class="media">
    <div class="media-left">
      <a href="#">
        <img src="https://www.java2s.com/style/demo/Google-Chrome.png" class="media-object" style="width:45px">
      </a>
    </div>
    <div class="media-body">
      <h4 class="media-heading">Media heading</h4>
      <p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.</p>
      <div class="media">
        <div class="media-left">
          <a href="#">
            <img src="https://www.java2s.com/style/demo/Google-Chrome.png" class="media-object" style="width:45px">
          </a>
        </div>
        <div class="media-body">
          <h4 class="media-heading">Nested media heading</h4> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
          <div class="media">
            <div class="media-left">
              <a href="#">
                <img src="https://www.java2s.com/style/demo/Firefox.png" class="media-object" style="width:45px">
              </a>
            </div>
            <div class="media-body">
              <h4 class="media-heading">Nested media heading</h4> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
             </div>
          </div>
        </div>
      </div>
      <div class="media">
        <div class="media-left">
          <a href="#">
            <img src="https://www.java2s.com/style/demo/Opera.png" class="media-object" style="width:45px">
          </a>
        </div>
        <div class="media-body">
          <h4 class="media-heading">Nested media heading</h4> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
        </div>
      </div>
    </div>
  </li>
</ul>

</div>

</body>
</html>

Related Tutorials