CodesJava

Easy learning with example program codes

Bootstrap Panel Group Tutorial

Panel refers to a bordered box with some padding around its content.

Bootstrap provides the .panel class to create the panel. The .panel-body class is used for the content inside the panel.

The .panel-group class with div element is used to group the many panels together.

Bootstrap Panel Group Example:

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Panel Group Example</title>
  <meta charset="utf-8">
  <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.3.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
 
<div class="container">
  <h2>Bootstrap Panel Group Example</h2>
  <div class="panel-group">
    <div class="panel panel-default">
      <div class="panel-heading">Bootstrap Panel Header</div>
      <div class="panel-body">Bootstrap Panel Content</div>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading">Bootstrap Panel Header</div>
      <div class="panel-body"> Bootstrap Panel Content</div>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading">Bootstrap Panel Header</div>
      <div class="panel-body">Bootstrap Panel Content</div>
    </div>
  </div>
</div>
 
</body>
</html>

Try it:

Bootstrap Panel Group Example on jsbin.com

Please follow and like us:
error

Bootstrap 3 Tutorial








Copyright © 2019 CodesJava DMCA.com Protection Status