Include full-width list groups within any panel. - HTML CSS Bootstrap

HTML CSS examples for Bootstrap:Panel

Description

Include full-width list groups within any panel.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Example of Bootstrap 3 Panels with List Group</title>
    <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/1.11.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
 </head><!--   ww w  . ja  v a 2s. c o  m-->
 <body>
  <div>
   <div class="panel panel-default">
    <!-- Default panel contents -->
    <div class="panel-heading">
     Products
    </div>
    <div class="panel-body">
     <p>The following products are currently available on our store.</p>
    </div>
    <!-- List group -->
    <div class="list-group">
     <a href="#" class="list-group-item">Mobile Phones <span class="badge">50</span> </a>
     <a href="#" class="list-group-item">Laptops & Desktops <span class="badge">145</span> </a>
     <a href="#" class="list-group-item">Tablets <span class="badge">30</span> </a>
     <a href="#" class="list-group-item">Audio & Video Players <span class="badge">65</span> </a>
     <a href="#" class="list-group-item">Camera <span class="badge">8</span> </a>
    </div>
   </div>
  </div>
 </body>
</html>

Related Tutorials