I am trying to add a single custom icon to jqm and I’m doing the following:
<style>
.ui-icon-myicon {
background-image: url('images/myicon.png') !important;
}
</style>
Then in the footer…
<li>
<a href="#" data-icon="myicon" data-iconpos="top" class="ui-btn-active ui-state-persist btn_inner">News</a>
</li>
My problem is that nothing is showing up.
I’m I forgetting something here?
Remove your class tag and use the identifiers built into JQM.
If you’re wanting the icon to appear on a high pixel density device (i.e. an Apple Retina display) you need to include a second image twice the size. So in your CSS: