There seems to be no class for input type 'submit' in font-awesome. Is it possible to use some class from font-awesome for button input? I've added icons to all buttons (which actually links with class 'btn' from twitter-bootstrap) in my applications, but can't add icons on 'input type submit'.
Or, how to use this code:
input#image-button{
background: #ccc url('icon.png') no-repeat top left;
padding-left: 16px;
height: 16px;
}
html:
<input type="submit" id="image-button">Text</input>
(which I took from HTML: How to make a submit button with text + image in it?) with font-awesome?
You can use button classes
btn-link
andbtn-xs
with typesubmit
, which will make a small invisible button with an icon inside of it. Example: