# Can you put a button and title beside each other in an ion-header?

**URL:** <https://forum.ionicframework.com/t/can-you-put-a-button-and-title-beside-each-other-in-an-ion-header/69348>\
**Category:** ionic-v3\
**Created:** [November 6, 2016, 8:06pm UTC](https://forum.ionicframework.com/t/can-you-put-a-button-and-title-beside-each-other-in-an-ion-header/69348 "2016-11-06T20:06:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtycholaz](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@mtycholaz](https://forum.ionicframework.com/u/mtycholaz)\
**Post date:** [November 6, 2016, 8:06pm UTC](https://forum.ionicframework.com/t/can-you-put-a-button-and-title-beside-each-other-in-an-ion-header/69348/1 "2016-11-06T20:06:17Z")

</div>

This mark up gives an unexpected result. I expected that I could have a title with buttons on the left and right of the title, much like having the navigation button with title.

```
 <ion-header>
    <ion-navbar>
        <button ion-button clear>
            <ion-icon name="close" (click)="dismiss()"></ion-icon>
        </button>
        <ion-title>Record</ion-title>
    </ion-navbar>
</ion-header>

```

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

---

<div class="post-metadata">

**Author:** ![chanyap92](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@chanyap92](https://forum.ionicframework.com/u/chanyap92)\
**Post date:** [November 7, 2016, 2:28am UTC](https://forum.ionicframework.com/t/can-you-put-a-button-and-title-beside-each-other-in-an-ion-header/69348/2 "2016-11-07T02:28:51Z")

</div>

you need to wrap button tag inside ion-buttons, for example

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

the end attribute in ion-buttons mean the button will be on right side of title…use start if you want it on left side of title

---

<div class="post-metadata">

**Author:** ![mtycholaz](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@mtycholaz](https://forum.ionicframework.com/u/mtycholaz)\
**Post date:** [November 7, 2016, 3:09am UTC](https://forum.ionicframework.com/t/can-you-put-a-button-and-title-beside-each-other-in-an-ion-header/69348/3 "2016-11-07T03:09:31Z")

</div>

This works!! Except it never puts the buttons on the left hand side 😑

This

```
<ion-header>
    <ion-toolbar>
        <ion-buttons start>
            <button ion-button clear icon-only (click)="dismiss()">
                <ion-icon name="close"></ion-icon>
            </button>
        </ion-buttons>
        <ion-title>Recipients</ion-title>
    </ion-toolbar>
</ion-header>

```

Makes this

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

I guess I could live with this. Thanks.

---

<div class="post-metadata">

**Author:** ![chanyap92](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@chanyap92](https://forum.ionicframework.com/u/chanyap92)\
**Post date:** [November 7, 2016, 3:11am UTC](https://forum.ionicframework.com/t/can-you-put-a-button-and-title-beside-each-other-in-an-ion-header/69348/4 "2016-11-07T03:11:55Z")

</div>

then you can try left or right attribute instead of start end…because i using both old and new version in different pc so sometime it confuse me a bit too

---

<div class="post-metadata">

**Author:** ![mtycholaz](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@mtycholaz](https://forum.ionicframework.com/u/mtycholaz)\
**Post date:** [November 7, 2016, 5:48am UTC](https://forum.ionicframework.com/t/can-you-put-a-button-and-title-beside-each-other-in-an-ion-header/69348/5 "2016-11-07T05:48:58Z")

</div>

Yup this worked. Thank you!
