javascript - How can I fix the bootstrap navbar to the top after a div was scrolled? -


i trying navbar bootstrap appear after div, called "a". div "a" @ top of page, , has height of around 400px. once user scrolls past div "a" , scrollbar, want scroll bar stick top. similar this: https://www.facebook.com/home don't have video @ top, image.

can we bootstrap itself?

thanks!

i wrote jquery plugin doing - http://drewdahlman.github.com/pinned/

super simple - make header position absolute , position - set jquery plugin -

$("#element").pinned({     bounds: 100, // when become sticky 100px     scrolling: 0, // position during scroll 0px }); 

that should it!

cheers!


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -