# Headers position is not fixed while scrolling up and down in ios

**URL:** <https://forum.ionicframework.com/t/headers-position-is-not-fixed-while-scrolling-up-and-down-in-ios/1758>\
**Category:** ionic-v1\
**Created:** [March 11, 2014, 2:50pm UTC](https://forum.ionicframework.com/t/headers-position-is-not-fixed-while-scrolling-up-and-down-in-ios/1758 "2014-03-11T14:50:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![h4ck3rviv3k](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@h4ck3rviv3k](https://forum.ionicframework.com/u/h4ck3rviv3k)\
**Post date:** [March 11, 2014, 2:50pm UTC](https://forum.ionicframework.com/t/headers-position-is-not-fixed-while-scrolling-up-and-down-in-ios/1758/1 "2014-03-11T14:50:40Z")

</div>

I am trying to display a page with header,content and footer. My issue is when i am trying to scroll the page up and down header also get scrolled along with the page so what i want is to fix the header at the top even if i scrolled my content it should remain at the top of the screen.

It is working fine in android as i have applied style `style="position: fixed;"` in header but it is not working in the IOS. Please suggest some solution as i have tried all possible ways to do it still it is not working

Below is my header code

```
<header class="bar bar-header bar-royal" style="position: fixed">
            <button id="btnBack" class="button button-icon" ><img src="img/left_arrow.png"></button>
            <h1 class="title"><a href="#" ><img src="img/logo_icon.png" ></a></h1>
        </header>

```

---

<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:** [March 13, 2014, 7:35pm UTC](https://forum.ionicframework.com/t/headers-position-is-not-fixed-while-scrolling-up-and-down-in-ios/1758/2 "2014-03-13T19:35:48Z")

</div>

Hmm, I’ve actually never use just the pure css version of the header bar since the `ion-header-bar` directive is so easy.

Do you mind posting a code pen and try to reproduce the issue?

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [March 14, 2014, 1:03pm UTC](https://forum.ionicframework.com/t/headers-position-is-not-fixed-while-scrolling-up-and-down-in-ios/1758/3 "2014-03-14T13:03:53Z")

</div>

Occasionally, I have used a hand-coded header with no problem. It “should” stay in place. I would suspect something to do with the view. As Mike said, can you provide a CodePen sample so we can see the whole layout?
