Need to put some content in a box with a border and padding? Use the panel
class to do it.
panel-default
modifer, and no panel header.
<div class="panel panel-default">
<div class="panel-body">
…
</div>
</div>
panel-default
modifer, and a panel header.
<div class="panel panel-default">
<div class="panel-title">
…
</div>
<div class="panel-body">
…
</div>
</div>
Assign panel modifiers to give some styling to the panels.
EXAMPLE<div class="panel panel-primary">
<div class="panel-title">
Primary Heading
</div>
<div class="panel-body">
Primary body.
</div>
</div>
<div class="panel panel-success"> … </div>
<div class="panel panel-info"> … </div>
<div class="panel panel-warning"> … </div>
<div class="panel panel-danger">
<div class="panel-title">
Danger Heading
</div>
<div class="panel-body">
Danger body.
<p><a href="#" class="btn btn-sm btn-danger"></p>
</div>
</div>