Hey there! I'm currently working on a phonegap app using CSS3 and HTML5. The app features two buttons in the same row, each with an icon wrapped around it and text displayed below the image. However, I'm facing an issue where the images are not showing up on the buttons.
_______________________________________
| ____ ______ |
| | | | | |
| | | | | |
| |----| |-----| |
| button1 button2 |
| |
| |
| |
|_____________________________________|
Here is the snippet of my HTML code:
<a href="#button1Page" data-role="button" data-icon="button1" data-iconpos="top" data-transition="pop"> Button 1</a> <br>
<a href="#button2Page" data-role="button" data-icon="button2" data-iconpos="top" data-transition="pop"> Button 2</a> <br>
Below is the CSS for the app:
ui-icon-button1 {
background-image: url("img/icon1.png");
}
.ui-icon-button2 {
background-image: url("img/icon2.png");
}
I would appreciate any assistance in resolving this issue. Thank you!