A jquery plguin that fix sth on the top of the window when scroll. Usage $('.something-you-want-to-fixed').fixNav({ maxWidth: $('body').width(), autoRollTop: true }); WARNING You can not set the height of body or html to 100% if you want to use the plugin.