Font-awesome, input type 'submit'

Posted by denis.peplin on Stack Overflow See other posts from Stack Overflow or by denis.peplin
Published on 2012-07-27T10:29:23Z Indexed on 2012/12/03 11:14 UTC
Read the original article Hit count: 261

It seems 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?

© Stack Overflow or respective owner

Related posts about twitter-bootstrap

Related posts about twitter-bootstrap-rails