Create a Bootstrap Media List

BootstrapWeb DevelopmentCSS Framework

To create a Bootstrap media list in Bootstrap, you can try to run the following code −

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</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>
      <ul class = "media-list">
         <li class = "media">
            <a class = "pull-left" href = "#">
               <img class = "media-object" src = "https://www.tutorialspoint.com/latest/Angular-4.png" alt = "Generic placeholder image">
            </a>
            <div class = "media-body">
               <h4 class = "media-heading">Media heading</h4>
               <p>
                  This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.
               </p>
               <div class = "media">
                  <a class = "pull-left" href = "#">
                     <img class = "media-object" src = "https://www.tutorialspoint.com/latest/Angular-4.png"
                     alt = "Generic placeholder image">
                  </a>
                  <div class = "media-body">
                     <h4 class = "media-heading">Nested heading</h4>
                     This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.
                     <div class = "media">
                        <a class = "pull-left" href = "#">
                           <img class = "media-object" src = "https://www.tutorialspoint.com/latest/Angular-4.png"
                           alt = "Generic placeholder image">
                        </a>
                        <div class = "media-body">
                           <h4 class = "media-heading">Nested heading</h4>
                           This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.
                        </div>
                     </div>
                  </div>
               </div>
               <div class = "media">
                  <a class = "pull-left" href = "#">
                     <img class = "media-object" src = "https://www.tutorialspoint.com/latest/Angular-4.png"
                     alt = "Generic placeholder image">
                  </a>
                  <div class = "media-body">
                     <h4 class = "media-heading">Nested heading</h4>
                     This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.
                  </div>
               </div>
            </div>
         </li>
      </ul>
   </body>
</html>
raja
Published on 21-Jun-2018 07:58:33
Advertisements