# Use Image as a button?

**URL:** <https://forum.ionicframework.com/t/use-image-as-a-button/20159>\
**Category:** uncategorized\
**Created:** [April 2, 2015, 9:46am UTC](https://forum.ionicframework.com/t/use-image-as-a-button/20159 "2015-04-02T09:46:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elepetit](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@elepetit](https://forum.ionicframework.com/u/elepetit)\
**Post date:** [April 2, 2015, 9:46am UTC](https://forum.ionicframework.com/t/use-image-as-a-button/20159/1 "2015-04-02T09:46:25Z")

</div>

hello

i want to use an image as a button.  
I’ve designed all my buttons in png but impossible  
to put as button.  
I’m working with mouseup and down, ok on safari but not in iOS.

```
<div ng-click="take()" ng-mouseup="cameraClass='camera-up'" ng-mousedown="cameraClass='camera-down'" class="camera-up" ng-class="cameraClass" style="position:fixed;top:25%;left:4%;width:120px"></div>
```

---

<div class="post-metadata">

**Author:** ![bobrov1989](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bobrov1989/32/98131_2.png) [@bobrov1989](https://forum.ionicframework.com/u/bobrov1989)\
**Post date:** [April 2, 2015, 12:42pm UTC](https://forum.ionicframework.com/t/use-image-as-a-button/20159/2 "2015-04-02T12:42:05Z")

</div>

there is no mouse on touch devices)))  
use ng-class to change button class according to action you want

---

<div class="post-metadata">

**Author:** ![elepetit](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@elepetit](https://forum.ionicframework.com/u/elepetit)\
**Post date:** [April 3, 2015, 3:03am UTC](https://forum.ionicframework.com/t/use-image-as-a-button/20159/3 "2015-04-03T03:03:35Z")

</div>

ok i’m working with ionic and i’ve found touch events  
thx
