Include list groups within any Bootstrap Panel

BootstrapWeb DevelopmentCSS Framework

To include list groups within Bootstrap panel, create a panel by adding class .panel to the <div> element.

Also, add class .panel-default to this element. Now within this panel include your list groups.

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>
      <div class = "panel panel-default">
         <div class ="panel-heading">Tutorials</div>
         <div class = "panel-body">
            <p>List of tutorials</p>
         </div>
         <ul class = "list-group">
            <li class = "list-group-item">C</li>
            <li class = "list-group-item">Java</li>
            <li class = "list-group-item">Ruby</li>
            <li class = "list-group-item">C++</li>
         </ul>
      </div>
   </body>
</html>
raja
Published on 20-Jun-2018 17:12:16
Advertisements