I am trying to create a button that is fixed on the lower-left side of the screen. I tried to setup in JSFiddle to recreate what I\'m trying to do.
Here is my HTML:<
Updated now so that it sticks above footer.
Hope this is what you meant The jQuery:
$(window).scroll(function() {
if($(window).scrollTop() + $(window).height() > $(document).height() - 200) {
$('#button').addClass('fixed_button');
}else{
$('#button').removeClass('fixed_button');
}
});
CSS:
.fixed_button{
position:absolute !important;
margin-top:1900px;
bottom: auto !important;
}