i know there are other solutions to this problem, but i simply cant get them to work
i have a fixed div that sticks to the bottom. i would like i to stop when it hits the #footer
is have is css so basically i need a script that changes the class from .widget.widget_nav_menu to .widget.widget_nav_menu.fixed_button when is hits the border of the footer
is that possible?
.widget.widget_nav_menu{
background: none repeat scroll 0 0 #2E3337;
bottom: 0;
padding: 25px;
position: fixed;
right: 2%;
color: #707480;
font-size: 0.8em;
opacity: 1;
text-transform: uppercase;
}
.widget.widget_nav_menu.fixed_button {
margin-right: -210px;
position: absolute !important;
top: -180px;
background: none repeat scroll 0 0 #2E3337;
padding: 25px;
right: 2%;
}