Start New Discussion within our UI / UX Design Community

Here's the code I'm currently using which works fine in Chrome, Safari, FF, Opera, but not in IE6. (Haven't tested IE7/8)

<div style="position:fixed;width:100%;top:0;">

What I need is for the header of my page to stay at the top, regardless of page scroll. I've been searching the net for a fix and have come up empty handed. I'd prefer not having to resort to javascript.

So I guess the problem is that IE6 doesn't implement the fixed position. So for those curious I found a page describing how to work around this. Between that and the other comments on the page (as referenced by the author) the solution works smoothly without the need for any javascript.

This question has already been answered. Start a new discussion instead.