Recent Questions Html Tree SampleQ:
Things are mostly working great. I want my menu to appear centered at the top the page. Here's the code:
<table style="text-align: left; width: 100%;" border="0" cellpadding="2"cellspacing="2">
The table appears at the far left edge of the window. I tried with both absolute (x=20, y=10) and relative (both x and y unset) coordinates. Help! A: If you want to center the menu paste itwithin the <div > or <table> with a static position and specify a center alignment for it, for example:
<td align=center width=600> </tr>
Please, set exact value for var menuWidth parameter, for example:
var menuWidth = "600px";
This can help to align your menu correctly in all browsers.
Try also to specify units in "px".
var absolutePos = 0;
I use your product for one of my clients and so I am familiar with using Deluxe Tuner on the Mac and editing that menu, etc. It is a simple menu though, that doesn't use any images or anything fancy.
Any advice is appreciated. Thank you!A: Yes, of course, I don't see any problem with it.
You can use any images as item background, see for example:
How can I set the top-level menu items of the html pop up menu to be transparent?A: You should create Individual Item and Submenu styles with transparent itemBackColor and assign it for the top items:
var itemStyles = [
var menuStyles = [
However, when I place it inside a CSS-defined div element (for absolute page placement) the submenu's all drop down a couple hundred pixels. A: See, the problem is that the script can't get css properties of the object if they are described in separate .css block (or file).In other words, you can't get the value of "POSITION: absolute" attribute of the object if the object doesn't have this property within inline style (style="POSITION:absolute;"). To get the value you should move .css style into style="" attribute.
Please, try to add your
css file -> inline css, for example:
You should add style="POSITION: absolute;"
So, you'll have:
<DIV id="menu" style="POSITION: absolute;">