Reputation: 27
I've been trying to add FontAwesome to work with jQuery mobile. After reading the replies in this question: https://stackoverflow.com/questions/18809890/how-where-to-install-font-awesome-in-jquery-mobile-app
I tried to do as the most recent answerer suggested, adding .ui-icon before fa. Unfortunately it wouldn't work.
Here is a jsFiddle: http://jsfiddle.net/CLANQ/2/
.ui-icon-fa-facebook-square:before {
content: "\f082";
}
Anyone have any ideas in regards to how it could be solved?
Thanks in advance!
Upvotes: 0
Views: 3525
Reputation: 10212
You need to add the ui-icon-fa
class separately:
<a href="#" class="ui-icon-fa ui-icon-fa-facebook ... and other classes">Log in using Facebook</a>
Check out the fiddle
Upvotes: 3