# Does Ionic have any built-in class to vertical align list button?

**URL:** <https://forum.ionicframework.com/t/does-ionic-have-any-built-in-class-to-vertical-align-list-button/27146>\
**Category:** ionic-v1\
**Created:** [June 25, 2015, 1:47pm UTC](https://forum.ionicframework.com/t/does-ionic-have-any-built-in-class-to-vertical-align-list-button/27146 "2015-06-25T13:47:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lesliechw](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@lesliechw](https://forum.ionicframework.com/u/lesliechw)\
**Post date:** [June 25, 2015, 1:47pm UTC](https://forum.ionicframework.com/t/does-ionic-have-any-built-in-class-to-vertical-align-list-button/27146/1 "2015-06-25T13:47:31Z")

</div>

It’s weird that the icon/button is item is not vertically middle align. Once add more content than demo list content (which is very normal I guess), the button/icon on left remain on top.

Is there any built-in class to handle this? Please advice, thank you.

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/d/dbf5f915500b5abddd16560b59c2ea173dbf596e.jpg)

---

<div class="post-metadata">

**Author:** ![bokboki2002](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bokboki2002/32/12515_2.png) [@bokboki2002](https://forum.ionicframework.com/u/bokboki2002)\
**Post date:** [June 25, 2015, 4:03pm UTC](https://forum.ionicframework.com/t/does-ionic-have-any-built-in-class-to-vertical-align-list-button/27146/2 "2015-06-25T16:03:16Z")

</div>

Hi,  
Here is how I would do it with button on the right side:

> **[Ionic List With Centered Delete button on the right](https://codepen.io/bokboki2002/pen/jPaRqJ)**
>
> Pen that shows list with centered delete button on the right Forked from \[Boris Kuzmic\](http://codepen.io/bokboki2002/)'s Pen \[Ionic Base Empty Pen\](h...

The key is to add another class on the button to center it vertically:

```
.rightCenterDeleteButton {
  position: absolute !important;
  right: 0;
  top: 50%;
  margin-top: -23px !important; /* half the height of delete button */
}
```

---

<div class="post-metadata">

**Author:** ![lesliechw](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@lesliechw](https://forum.ionicframework.com/u/lesliechw)\
**Post date:** [June 25, 2015, 4:51pm UTC](https://forum.ionicframework.com/t/does-ionic-have-any-built-in-class-to-vertical-align-list-button/27146/3 "2015-06-25T16:51:39Z")

</div>

Thank you very much. I’ll try now and reply with result later. Thanks again. Appreciate your help very much.

---

<div class="post-metadata">

**Author:** ![lesliechw](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@lesliechw](https://forum.ionicframework.com/u/lesliechw)\
**Post date:** [June 25, 2015, 5:08pm UTC](https://forum.ionicframework.com/t/does-ionic-have-any-built-in-class-to-vertical-align-list-button/27146/4 "2015-06-25T17:08:53Z")

</div>

> [@bokboki2002](#):
>
> top: 50%;

Thank you so much. It work. I just need to add !important to ‘top: 50%;’

Once again, thank you.
