Ion-scroll and z-index

I am trying to do something like this with the latest (beta-1) version.

<div style="z-index: 9999">some content that should stay above all</div>
        <p>enough content to require vertical scrolling</p>

The ion-scroll section works but the content appears on above my top div when I scroll. I want it to work the exact same way but under it.

You need to be using a fixed position

Something like :

That works. Thanks for the detailed example.