I use Bootstrap 3 to create panels with a structure like the below and would like to vertically align the span within the panel heading and without extending the default height of the panel heading.
I tried different approaches (adding class="clearfix"
, adding style="vertical-align:middle !important;"
adding style="overflow:hidden !important;"
etc.) but they are all either ignored or they increase the default height of the panel heading.
My guess is that this is due to the "pull-right" class but as this is an official Bootstrap class I hope there is some workaround for this.
Can someone tell me how to achieve this ?
(The image I use within the link is only 32x32 so its height is less than the height of the panel heading.)
Example panel:
<div class="panel panel-primary">
<div class="panel-heading">
Categories
<span class="pull-right"><a href="#"><img src='images/icons/myImage.png' alt='' /></a></span>
</div>
<div class="panel-body">
// ...
</div>
</div>
Many thanks in advance, Tim.