# Ion-content with fixed content above

**URL:** <https://forum.ionicframework.com/t/ion-content-with-fixed-content-above/7234>\
**Category:** ionic-v1\
**Created:** [July 23, 2014, 1:28pm UTC](https://forum.ionicframework.com/t/ion-content-with-fixed-content-above/7234 "2014-07-23T13:28:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![koenj](https://avatars.discourse-cdn.com/v4/letter/k/e8c25b/32.png) [@koenj](https://forum.ionicframework.com/u/koenj)\
**Post date:** [July 23, 2014, 1:28pm UTC](https://forum.ionicframework.com/t/ion-content-with-fixed-content-above/7234/1 "2014-07-23T13:28:25Z")

</div>

Hi All,

I’m using ‘ion-content’ to create scrollable content.  
However, it seems that ion-content can only be used “full screen”.

In my application, I’d like to put some arbitrary content above the scrollable content.  
When I do so, the ion-content is taking up all the space ([see this jsfiddle](http://jsfiddle.net/koenj/556GL/15/)).

Is this kind of behavior not possible to achieve with ion-content? (other than putting hard margins?)  
Is there another preferred way of creating this behavior?

  
Thanks for your time, Koen

---

<div class="post-metadata">

**Author:** ![bengtler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bengtler/32/98565_2.png) [@bengtler](https://forum.ionicframework.com/u/bengtler)\
**Post date:** [July 23, 2014, 1:43pm UTC](https://forum.ionicframework.com/t/ion-content-with-fixed-content-above/7234/2 "2014-07-23T13:43:18Z")

</div>

Hey, therefore you can use ions-scroll.  
[http://ionicframework.com/docs/api/directive/ionScroll/](http://ionicframework.com/docs/api/directive/ionScroll/)

---

<div class="post-metadata">

**Author:** ![koenj](https://avatars.discourse-cdn.com/v4/letter/k/e8c25b/32.png) [@koenj](https://forum.ionicframework.com/u/koenj)\
**Post date:** [July 24, 2014, 7:03pm UTC](https://forum.ionicframework.com/t/ion-content-with-fixed-content-above/7234/3 "2014-07-24T19:03:31Z")

</div>

Thanks, looks good.

I guess this is more of css question than an ionic question;  
if i do use ion-scroll, the height of that ion-scroll container must be set in order to see the scrollbar.

What is the best way to set it to the height of the windows - the height of the fixed content above?  
Is there no other way then explicitly calculating this height in css?

Thanks,  
Koen

---

<div class="post-metadata">

**Author:** ![bengtler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bengtler/32/98565_2.png) [@bengtler](https://forum.ionicframework.com/u/bengtler)\
**Post date:** [July 25, 2014, 7:35am UTC](https://forum.ionicframework.com/t/ion-content-with-fixed-content-above/7234/4 "2014-07-25T07:35:21Z")

</div>

puhh you i think you need a parent conainer with a fixed height and position relative.

maybe you can get the height of the scrollbar div of ionic (it should be the height of the visible part of the page).  
I do not know where your ion-scroll is placed… maybe height: 100% reaches your aims.
