I am trying to make a header for my reveal.js presentation that sticks to the top of the screen. The content in the header is dynamic on a per-slide basis, so I have to place the markup within the section tag.
Apparently position:fixed does not really provide satisfying results in reveal.js if the markup is within the section tag. I can't really make out why that is exactly, but I found some info in the github repo suggesting setting the presentation size to fit the viewport size with:
Reveal.initialize {
...
width: '100%',
height: '100%',
...
}
But it still doesn't work for me - it seems the presentation is not really affected by the above. Here is a demo:
https://dl.dropboxusercontent.com/u/706446/_linked%20stuff/reveal.js/index.html
Any ideas how to solve this?