DHTMLX Docs & Samples Explorer

Index
dhtmlxlayout
Layout Appearance
Margins

# Margins (Example)

    <head>
    	<title>Marings Demo</title>
    	<link rel="stylesheet" type="text/css" href="codebase/dhtmlxlayout.css">
    	<link rel="stylesheet" type="text/css" href="codebase/skins/dhtmlxlayout_dhx_skyblue.css">
    	<script src="codebase/dhtmlxcommon.js"></script>
    	<script src="codebase/dhtmlxcontainer.js"></script>
    	<script src="codebase/dhtmlxlayout.js"></script>
    	<style>
    	html, body {
    		width: 100%;
    		height: 100%;
    		margin: 0px;
    		padding: 0px;
    		overflow: hidden;
    	}
    	</style>
    </head>
    <body onload="doOnLoad();">
    <script>
    	var dhxLayout;
    	function doOnLoad() {
    		dhxLayout = new dhtmlXLayoutObject(document.body, "3L");
    		dhxLayout.cont.obj._offsetTop = 10;
    		dhxLayout.cont.obj._offsetHeight = -30;
    		dhxLayout.setSizes();
    	}
    </script>
    </body>
    </html>