I've searched everywhere, looked at all answers and still can't find a solution for myself. The custom png image in the link data-icon is not showing up in the header. Here's the structure I have:
<div data-theme="b" data-role="header" data-position="fixed" data-tap-toggle="false" style="height:100px">
<img style="width:100%; height:100px" src="style/images/appbg.png" alt="Header"/>
<a data-role="button" data-iconpos="left" data-icon="my-home">Home</a>
</div>
And in the head section I have:
<style>.ui-icon-my-home{background-image: url("style/images/home.png");}</style>
It looks like it should work. I tried adding in the style 50% 50% no-repeat, tried adding this to a css file...nothing worked.
I'm using jquery 2.0 min, jquery-mobile-1.3.1.min, and jquery-mobile-1.3.1.min.css. Maybe these new versions don't work? Should I use an older version?
I'm also loading the CSS first, then jQuery and finally jQuery Mobile. Another thing is the image shows up when I do the regular img tags...so the path is correct. It's only when I try to input the image into the link data-icon, then it doesn't show up. Please help me out here...