I have been attempting to customize a Bootstrap panel to create a horizontal version, but I am struggling to align the panel heading vertically with the content in the panel body. I believe it may be related to clearing the divs.
Front-end development is not my strong suit, and although I know this should be a simple task, it is currently challenging for me!
Below is the code I am using:
<div class="panel panel-default panel-horizontal">
<div class="panel-body">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque, deserunt, aliquam, inventore commodi at placeat blanditiis quaerat quo fuga molestias ex quos debitis quidem dolor fugit aspernatur iste iusto quibusdam.</p>
</div>
<div class="panel-heading">
<p>Example</p>
</div>
</div>
Here is the CSS associated with it:
.panel-horizontal .panel-heading {
border-bottom: 0;
border-right: 1px solid transparent;
border-top-right-radius: 0;
margin-bottom: 0;
width: 150px;
}
.panel-horizontal .panel-body {
float: right;
margin: 0 0 15px 150px;
padding-bottom: 0;
}
Can anyone help me figure out what I am missing?