I have recently implemented Panels from Bootstrap 3 with the older version of Twitter-Bootstrap.
My challenge lies in adding the well
class to the panel body, as it results in excessive padding. This was not an issue when using BS3, leading me to believe that I overlooked some code.
For a better understanding, refer to this example: http://www.bootply.com/Wnp50MNE23
https://i.sstatic.net/ExC3s.png
<div class="panel panel-success">
<div class="panel-heading">
<span class="panel-title">Panel Title</span>
</div>
<div class="panel-body well">
Panel content
</div>
</div>
.panel {
padding: 15px;
margin-bottom: 20px;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 4px;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.panel-heading {
padding: 10px 15px;
margin: -15px -15px 15px;
font-size: 17.5px;
font-weight: 500;
background-color: #f5f5f5;
border-bottom: 1px solid #dddddd;
border-top-right-radius: 3px;
border-top-left-radius: 3px;
}
This is what I am aiming for, which functions correctly with the default settings in BS3: https://i.sstatic.net/7SMod.png