# How to change height of the header?

**URL:** <https://forum.ionicframework.com/t/how-to-change-height-of-the-header/5081>\
**Category:** ionic-v1\
**Created:** [June 2, 2014, 9:09am UTC](https://forum.ionicframework.com/t/how-to-change-height-of-the-header/5081 "2014-06-02T09:09:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobbe](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tobbe/32/8606_2.png) [@tobbe](https://forum.ionicframework.com/u/tobbe)\
**Post date:** [June 2, 2014, 9:09am UTC](https://forum.ionicframework.com/t/how-to-change-height-of-the-header/5081/1 "2014-06-02T09:09:04Z")

</div>

How can I change the height of the header? seems to be a lot of things (css) that has to be changed to not break it. Has someone successfully changed the height? what classes/id’s do I need to change?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [June 2, 2014, 1:15pm UTC](https://forum.ionicframework.com/t/how-to-change-height-of-the-header/5081/2 "2014-06-02T13:15:35Z")

</div>

```
.bar-header{
  height: 80px;
}

.has-header{
  top:80px;
}

```

> **[Starter Template: 1.0.0-beta.6](https://codepen.io/mhartington/pen/CLdon)**
>
> A barebones starter template for Ionic development Forked from \[Ionic\](/ionic)'s Pen \[Starter Template: 1.0.0-beta.6\](/ionic/pen/vBeqF/)....

---

<div class="post-metadata">

**Author:** ![tobbe](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tobbe/32/8606_2.png) [@tobbe](https://forum.ionicframework.com/u/tobbe)\
**Post date:** [June 2, 2014, 3:22pm UTC](https://forum.ionicframework.com/t/how-to-change-height-of-the-header/5081/3 "2014-06-02T15:22:38Z")

</div>

hmm, but that will make the header title and buttons (like menu button) text to not be vertically centered, and not 100% height. Do you know how to fix that?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [June 2, 2014, 3:32pm UTC](https://forum.ionicframework.com/t/how-to-change-height-of-the-header/5081/4 "2014-06-02T15:32:59Z")

</div>

The title is absolutely positioned so you can adjust the top value for that and adding some padding will fix the button.

```
.bar-header{
  padding-top:40px ;
  height: 80px 
}

.bar-header h1.title{
  top:40px;
}

.has-header{
  top:80px 
}

```

Note that you will need to adjust these values to fit your size changes.

---

<div class="post-metadata">

**Author:** ![redfox05](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/redfox05/32/97705_2.png) [@redfox05](https://forum.ionicframework.com/u/redfox05)\
**Post date:** [March 1, 2016, 8:42pm UTC](https://forum.ionicframework.com/t/how-to-change-height-of-the-header/5081/5 "2016-03-01T20:42:24Z")

</div>

Yes, this is from a while back, but for anyone else reading this/finding it through Google, I would argue that this is not the correct way to go. Use the SASS variables to do this properly.

$bar-height: 80px

More info here: [iOS: Can't change height of ion-header-bar](https://forum.ionicframework.com/t/ios-cant-change-height-of-ion-header-bar/11477/4)

However, if you cant use the SASS files, then you may be forced to ‘hack/over-ride’ it as suggested above.  
But I would highly recommend doing it using the SASS variables.
