'leftMargin' Example : Margin « Style Layout « JavaScript DHTML






'leftMargin' Example

    
<html>
<body id="myBody">
<button onclick="alert(document.body.bottomMargin);">Bottom Margin</button></body>
<button onclick="alert(document.body.topMargin);">Top Margin</button></body>
<button onclick="alert(document.body.leftMargin);">Left Margin</button></body>
<button onclick="alert(document.body.rightMargin);">Right Margin</button>
</body>
</html>

    
      
      








Related examples in the same category

1.'bottomMargin' Example
2.'rightMargin' Example
3.'topMargin' Example