Zestaw JavaScript lewy margines

document.getElementById("myDiv").style.marginLeft = "50px";
Friendly Hawk