# \[Solved\]Button responsive behavior

**URL:** <https://forum.ionicframework.com/t/solved-button-responsive-behavior/9117>\
**Category:** ionic-v1\
**Created:** [September 3, 2014, 2:53pm UTC](https://forum.ionicframework.com/t/solved-button-responsive-behavior/9117 "2014-09-03T14:53:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShUffLe](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@ShUffLe](https://forum.ionicframework.com/u/ShUffLe)\
**Post date:** [September 3, 2014, 2:53pm UTC](https://forum.ionicframework.com/t/solved-button-responsive-behavior/9117/1 "2014-09-03T14:53:27Z")

</div>

Hello community,  
iam new at web development and ionic. I have a problem with a button in my app. On my desktop screensize I show an icon with text. When the size is now on small screen, the text is cutted off. I want to show only the icon at this point. How can i handle the problem?

Thank you.

---

<div class="post-metadata">

**Author:** ![iwantwin](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@iwantwin](https://forum.ionicframework.com/u/iwantwin)\
**Post date:** [September 3, 2014, 3:01pm UTC](https://forum.ionicframework.com/t/solved-button-responsive-behavior/9117/2 "2014-09-03T15:01:01Z")

</div>

When you have a button like this (I added a span around the button text, compared to docs this is custom)

```
<button class="button">
  <i class="icon ion-loading-c"></i>
  <span class="button-text">Loading...</span>
</button>

```

And in your css:

```
@media (max-width: 500px) {
  .button-text {
    display:none;
  }
}

```

Of course you have to decide which amount of pixels you use yourself 😉 I just use 500px as an example.

---

<div class="post-metadata">

**Author:** ![ShUffLe](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@ShUffLe](https://forum.ionicframework.com/u/ShUffLe)\
**Post date:** [September 4, 2014, 5:45am UTC](https://forum.ionicframework.com/t/solved-button-responsive-behavior/9117/3 "2014-09-04T05:45:33Z")

</div>

Thank you it works fine for me.
