JavaScript set la marge gauche

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