Font awesome icon and text in input submit button?

m_73 picture m_73 · Feb 2, 2015 · Viewed 62.2k times · Source

I have a similar problem like here , i want to place font awesome icon into my submit button and also a text, it looks so: http://prntscr.com/608exx

Content of my input submit value is Buy now  

The icon is visible because i set on input field font-family: FontAwesome; my question is, how can i set on my text inside the button standard font family?

Answer

Society43 picture Society43 · Feb 2, 2015

Try

<button type="submit" class="btn btn-default">
                    <i class="fa fa-shopping-cart"></i> Buy Now
                </button>