var container = document.getElementById ("container"),
oDiv = container.getElementsByTagName("div"),
width = oDiv[0].offsetWidth;
for(var i = oDiv.length-1;i>=0;i--){
oDiv[i].style.left = (oDiv.length-1-i)*50+"px";
}
foroDiv[]left
firebug