Skip to content

Makes headers stick to the top of the screen while staying within their container

Notifications You must be signed in to change notification settings

jnicol/Stuck-On-Top

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

StuckOnTop

Demo

Stuck on top is a simple jQuery plugin that sticks a specified element to the top of the screen while keeping it within it's container.

Usage

$("#container").stickyHeaders();

OR

$("#container").stickyHeaders(options);

Options headerClass: The css class of the header to stick to the top of the page. Defaults to header.

padding: The amount of padding to apply to the top of the screen before the header gets stuck. Useful if you have a fixed menu bar at the top of your page. Defaults to 0px.

About

Makes headers stick to the top of the screen while staying within their container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published