Everything is perfect when I use:
<button type="submit" class="btn btn-primary">
<i class="icon-user icon-white"></i> text
</button>
I want my own icon. That’s why I use:
<button type="submit" class="btn btn-primary">
<i class="icon-school icon-white"></i> text
</button>
My icon is displayed in the button, but my icon is a bit higher (20px x 16px). So, it is displayed for 75%. How to fix it?
Changing height or padding doesn’t help.
Thank you.
Create a
icon-persoclassAdd the following css to override the default behaviour with:
.
If you picture contain several icons like glyphicons-halflings.png you may have to change the background-position
You can have a look at
bootstrap.cssaround from line 2143 if you are curious.