Moving Your DHTML Menu.

Note: In the HTML Editor version 2009 and higher, the DHTML Menu Builder has been replaced with the CSS Menu Designer. To upgrade to the latest version of the HTML Editor, download it from your My Products page. For more information about the CSS Menu Designer, read How to Use the CSS Menu Designer.

The DHTML menu uses absolute positioning, which means you have to specify the exact location pixel by pixel.

If you look in the code for your DHTML menu, you will see the following:

	var StartTop=1;  // Menu offset x coordinate
var StartLeft=1;  // Menu offset y coordinate

What this means is to offset the menu 1 pixel down and 1 pixel to the right. You can change that number to anything you want, and it will in turn move the menu over and/or down. You won't be able to achieve relative positioning, meaning that the menu moves to a certain spot depending on how large the user's browser window/screen resolution is. You also cannot place the DHTML menu in a table cell.

Rate This Article

You must be signed in to rate articles.