How do I set the bottom CSS attribute of a node in JavaScript?
As in:
.foo
{
position: absolute;
bottom: 100px;
}
yourObject.style.bottom="auto|length|%|inherit"
Taken from JavaScript and DOM reference here.
Depends. In raw javascript, it will be a little different by browser. The easiest way to do that is to use something like jQuery, and then it's as easy as:
$('.foo').css('bottom', '100px');