twitter bootstrap - How to recreate menu like the right nav menu at getbootstrap.com -


On the website for bootstrap, they have a nav menu on the right that stays in place while you scroll, and This will follow you as well as your book through sections How does this work? I have tried to see the source of the page, and it is not called anywhere or it can not be found.

Any help would be great.

All thanks.

I recently answered it. See it here

Or I pasted it down.

If you want to add a fixed sidebar such that the bootstrap uses for their docs, as noted here, try it:

Add id = "Foo" data-spy = "affix" data-offset-top = "100" data-offset-bonus = "10" or in place on the scroll you want to lock.

And add javascript at the bottom of your page:

  & lt; Script type = "text / javascript" & gt; $ ('#foo') (Offset: {top: 100, bottom: function} (return (this. Bottom = $ ('.pad'). External Het (true))}})  From there, you Would like to adjust the height at which you want to lock by adjusting the 'top' elements. For example: 
$ ('#Foo') FX ({offset: {top: 100, below: function} (return (this. Bottom = $ ('.pad'). External Het (true))}})

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -