In the Facebook News Feed, the side bar (containing ads, etc.) isn't fixed all the time. How do you do this? You could do
<div style="position:fixed"></div>
But how could you tell it to change back and forth according to your wish?
In the Facebook News Feed, the side bar (containing ads, etc.) isn't fixed all the time. How do you do this? You could do
<div style="position:fixed"></div>
But how could you tell it to change back and forth according to your wish?
If you are happy to do it with jQuery:
$("#sideBar").css("position", "fixed");
and then to change it back:
$("#sideBar").css("position", "");