This is a migrated thread and some comments may be shown as answers.

IOS missing background

1 Answer 45 Views
Button (Mobile)
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 18 Nov 2013, 08:58 PM
I'm using the following code to define a custom button background icon:                  
       <style>
                            .km-root .km-pane .km-view .km-logo {
                                background-image: url(styles/images/icon40.png);
                                background-size: 100% 100%;
                            }
                        </style>

For some reason it only works on android. IOS shows a blank button. Any thoughts?

Also, is there any way to make the icon span the entire button? Or else to set the gray part to transparent?

1 Answer, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 19 Nov 2013, 03:23 PM
The solution is to just use inline style elements and skip the data-icon attribute altogether.
Tags
Button (Mobile)
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Share this question
or