In the following example, I would like to center the fa-plus
icon inside the circle.
What I notice is the glyph is aligned with the top of the <i>
tag. However I have added everything that should be needed to align it vertically:
https://jsfiddle.net/x2n13p4e/2/
HTML:
<a class="btn icon-btn btn-success" href="#">
<i class="btn-glyphicon text-success fa fa-plus"></i>
Add
</a>
CSS:
.btn-glyphicon {
padding: 3px;
background: #ffffff;
margin-right: 4px;
border-radius: 50px;
width: 1.5em;
height: 1.5em;
text-align: center;
vertical-align:middle !important;
align-items:center;
}
.icon-btn {
padding: 1px 15px 3px 2px;
border-radius: 50px;
text-align: center;
vertical-align:middle;
}