Currently, I have a glyphicon inside a badge and I want the glyphicon to have a smaller font size than the text. While I've achieved this, the issue now is that the glyphicon is not vertically centered within the badge.
Whenever I attempt to add margin-bottom or padding-bottom, it ends up affecting the entire badge instead of just the glyphicon element.
Below is the CSS class I am currently using:
.glyphicon-test3 {
margin-right: 5px;
font-size: 6px;
padding-bottom: 8px;
}
Here is the corresponding HTML code:
<div>
<span id="test" class="badge">
<span class="glyphicon glyphicon-plus-sign glyphicon-test3"></span>
Small icon with padding
</span>
</div>
I've created a PLNKR to demonstrate the issue: http://plnkr.co/edit/VBIeaffmFujY2qcdPcVI
Any suggestions on how to resolve this?