Check out the demo here:
I'm looking to have the blue menu bar stay fixed to the top of the page as you scroll past it, and then return to its original position when scrolling back up. This functionality works in all browsers except for IE7. Despite using jQuery to change the menu's position from relative to fixed conditionally, it doesn't seem to work in IE7.
As a workaround, I tried removing all JavaScript and setting the CSS position to fixed directly, which displays correctly in IE7.
In addition, testing with the condition
if ($('table#menu').position().top + 10 <= $(window).scrollTop())
triggered an alert in IE7, indicating that the event is being recognized.
So, the static CSS works fine and the JavaScript condition is functional. Any thoughts on what may be causing the issue?