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
Post a Comment