jquery - How can I make one div become fixed when another div become fixed? -


i using oxygen theme, when scroll down bottom, menu become fixed.

i want add menu, need make div become fixed too, how can make 1 div become fixed when menu become fixed.

appreciate.

you try;

var position= $(".fixedelement").css("position");  if (position=="fixed") {    $(".divclass").css("position", "fixed"); } 

here example of work - https://jsfiddle.net/lzk9vywy/

as can see see position fixed , fixed other divs position , moving left.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -