# Orientation problem

**URL:** <https://forum.ionicframework.com/t/orientation-problem/18570>\
**Category:** ionic-v1\
**Created:** [March 4, 2015, 9:56am UTC](https://forum.ionicframework.com/t/orientation-problem/18570 "2015-03-04T09:56:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkyangara](https://avatars.discourse-cdn.com/v4/letter/v/59ef9b/32.png) [@venkyangara](https://forum.ionicframework.com/u/venkyangara)\
**Post date:** [March 4, 2015, 9:56am UTC](https://forum.ionicframework.com/t/orientation-problem/18570/1 "2015-03-04T09:56:11Z")

</div>

HI, i am beginner and i have just started using ionic framework. I am developing an app that has image buttons on the page.I have two picture buttons below the other two buttons. In two coulmns, The buttons are aligned properly when in portrait mode, but when i change the to landscape or even a tablet i find those picture button below just overlap the above buttons. Please do help.

Thanks

---

<div class="post-metadata">

**Author:** ![azad11](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@azad11](https://forum.ionicframework.com/u/azad11)\
**Post date:** [March 4, 2015, 2:30pm UTC](https://forum.ionicframework.com/t/orientation-problem/18570/2 "2015-03-04T14:30:17Z")

</div>

Can you please post your HTML-Code.  
Thanks

---

<div class="post-metadata">

**Author:** ![dpfavand](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dpfavand/32/69708_2.png) [@dpfavand](https://forum.ionicframework.com/u/dpfavand)\
**Post date:** [March 4, 2015, 8:25pm UTC](https://forum.ionicframework.com/t/orientation-problem/18570/3 "2015-03-04T20:25:23Z")

</div>

Yes, please post a codepen or plunker.

---

<div class="post-metadata">

**Author:** ![venkyangara](https://avatars.discourse-cdn.com/v4/letter/v/59ef9b/32.png) [@venkyangara](https://forum.ionicframework.com/u/venkyangara)\
**Post date:** [March 5, 2015, 3:02am UTC](https://forum.ionicframework.com/t/orientation-problem/18570/4 "2015-03-05T03:02:03Z")

</div>

[http://codepen.io/venky2409/pen/JoBmva.html](http://codepen.io/venky2409/pen/JoBmva.html)

---

<div class="post-metadata">

**Author:** ![venkyangara](https://avatars.discourse-cdn.com/v4/letter/v/59ef9b/32.png) [@venkyangara](https://forum.ionicframework.com/u/venkyangara)\
**Post date:** [March 5, 2015, 5:39am UTC](https://forum.ionicframework.com/t/orientation-problem/18570/5 "2015-03-05T05:39:10Z")

</div>

[http://codepen.io/venky2409/pen/JoBmva.html](http://codepen.io/venky2409/pen/JoBmva.html)

---

<div class="post-metadata">

**Author:** ![azad11](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@azad11](https://forum.ionicframework.com/u/azad11)\
**Post date:** [March 5, 2015, 7:35am UTC](https://forum.ionicframework.com/t/orientation-problem/18570/6 "2015-03-05T07:35:39Z")

</div>

Can u write plz the the width and height from the imgs?

Your App look like this?

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/d/c/dc30f72522a642925f7f040647015f3e5357d597.png)

But u want this?

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/b/b43a84f9f078df644157f1fc460f6e930ebbb9e3.png)

---

<div class="post-metadata">

**Author:** ![venkyangara](https://avatars.discourse-cdn.com/v4/letter/v/59ef9b/32.png) [@venkyangara](https://forum.ionicframework.com/u/venkyangara)\
**Post date:** [March 5, 2015, 7:51am UTC](https://forum.ionicframework.com/t/orientation-problem/18570/7 "2015-03-05T07:51:04Z")

</div>

Yup exactly. my images are 512 x 512.

---

<div class="post-metadata">

**Author:** ![azad11](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@azad11](https://forum.ionicframework.com/u/azad11)\
**Post date:** [March 5, 2015, 8:02am UTC](https://forum.ionicframework.com/t/orientation-problem/18570/8 "2015-03-05T08:02:59Z")

</div>

okay the problem is, buttons with the class “button-clear” has a “max-height” ![image](https://global.discourse-cdn.com/ionicframework/original/3X/3/4/34e550d209a2b0a5e3d6748d1d6a34f810b6e405.png)

You must duplicate the CSS-Properties or copy it to your “style.css” and give it a custom CSS-Class, then u set the “max-height” to none

```
.my-custom-clear-button {
  -webkit-transition: opacity .1s;
  transition: opacity .1s;
  padding: 0 6px;
  max-height: none;
  border-color: rgba(0, 0, 0, 0);
  background: 0 0;
  box-shadow: none;
}

```

Thats it.

---

<div class="post-metadata">

**Author:** ![venkyangara](https://avatars.discourse-cdn.com/v4/letter/v/59ef9b/32.png) [@venkyangara](https://forum.ionicframework.com/u/venkyangara)\
**Post date:** [March 5, 2015, 8:18am UTC](https://forum.ionicframework.com/t/orientation-problem/18570/9 "2015-03-05T08:18:58Z")

</div>

Thank you so much @azad11 that cleared my problem.

---

<div class="post-metadata">

**Author:** ![azad11](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@azad11](https://forum.ionicframework.com/u/azad11)\
**Post date:** [March 5, 2015, 8:19am UTC](https://forum.ionicframework.com/t/orientation-problem/18570/10 "2015-03-05T08:19:21Z")

</div>

@venkyangara: no problem 😉
