I am using the below code to make a DIV always at the bottom of the page when scrolled. But this is not working and goes on increasing the Page height.
var LSscrollingDiv = $("#LightSwitchMenuIt");
$(window).scroll(function(){
LSscrollingDiv
.stop()
.animate({"marginTop": ($(window).scrollTop() + $(window).height()) + "px"}, "slow" );
});
Please help me on this.
Why not use straight CSS?
Demo.
See: