Need help with centering text on a bootstrap 3 button while aligning the font awesome icon to the left side.
<button type="button" class="btn btn-default btn-lg btn-block">
<i class="fa fa-home pull-left"></i> Home
</button>
Using pull-left
results in the icon being too close to the edge (see image 1).
https://i.stack.imgur.com/6wP2k.png
Adding a margin-left
or padding-left
to the icon shifts the text to the right instead of keeping it centered (as shown in image 2).
https://i.stack.imgur.com/FntT7.png
Is there a way to adjust the spacing around the icon without affecting the position of the text?