DHTMLX Docs & Samples Explorer

### Align

Source

    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxmenu_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxmenu.js"></script>
    <script src="../../codebase/ext/dhtmlxmenu_ext.js"></script>

    <div style="height: 250px;"><div id="menuObj"></div></div>
    <input type="button" value="Left Align" onclick="menu.setAlign('left');">
    <input type="button" value="Right Align" onclick="menu.setAlign('right');">
    </div>

    <br>
    <script>var menu;
    function initMenu() {
        menu = new dhtmlXMenuObject("menuObj");
        menu.setIconsPath("../common/imgs/");
        menu.loadXML("../common/dhxmenu.xml?etc=" + new Date().getTime());
    }</script>