Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Mobile: How to customize button

How do I change the <a data-role="button"> button's background to my image? Also how can I add my custom icons on top of a button at left side?

like image 289
Venkat Papana Avatar asked Dec 01 '22 07:12

Venkat Papana


1 Answers

Give the link a class and use CSS to change the background image.

<a data-role="button" class="my-button">

...

.my-button {
    background-image: url('images/my-button.png') !important;
}
like image 129
Greg Avatar answered Dec 05 '22 01:12

Greg