Placing Tables and List Groups inside Panels - HTML CSS Bootstrap

HTML CSS examples for Bootstrap:Panel

Introduction

You can add any non-bordered table within a panel to create more informative tables.

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 Table</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 .  j  a  v a  2 s .c  om-->
 <body>
  <div>
   <div class="panel panel-default">
    <!-- Default panel contents -->
    <div class="panel-heading">
     User Information
    </div>
    <div class="panel-body">
     <p>The following table contains some personal information about users.</p>
    </div>
    <!-- Table -->
    <table class="table">
     <thead>
      <tr>
       <th>Row</th>
       <th>First Name</th>
       <th>Last Name</th>
       <th>Email</th>
      </tr>
     </thead>
     <tbody>
      <tr>
       <td>1</td>
       <td>A</td>
       <td>B</td>
       <td>book2s .com</td>
      </tr>
      <tr>
       <td>2</td>
       <td>Peter</td>
       <td>Parker</td>
       <td>bo ok2s .com</td>
      </tr>
      <tr>
       <td>3</td>
       <td>A</td>
       <td>Rambo</td>
       <td>b o  ok2s .com</td>
      </tr>
     </tbody>
    </table>
   </div>
  </div>
 </body>
</html>

Related Tutorials