jquery - Keep Side Navigation Fixed with Scrolling of page -


I have a client website - www.stagecraft.co.uk and they () still want navigation there when If you scroll down the page I have a quick position (not a) with the situation, but in doing so it is approximately 200px or so from the top of the leftside navigation window

You can fix this situation, only when scrolling has reached a certain point:

  $ (window ) .sc Roll (function () {if ($ (this) .scrollTop ()> 200) {// I just use $ 200 for test $ ("# tester"). Css ({"position": " Css ({"status": "full", "top": "200px"}); // right here}}) ;  

And CSS for the div is the following:

  #tester {position: absolute; Correct: 20px; Top: 200px; Height: 200 pixels; Width: 100px; Background: Red; }  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -