Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:33

Left alignment of sub menu


Poster: Ludus
Dated: Monday April 7 2003 - 14:24:59 BST

Hi,

I need to set a left alignment for 1 or 2 sub menu only. Is it possible?
My DHTML menu shows all submenu with right alignment.
I need to change the alignment as I have in the page a menu select and 1 sub menu shown is covered by this select menu.

Hope it's clear :)

Thanks in advance,

Daniele from Italy


Poster: kevin3442
Dated: Saturday April 26 2003 - 8:31:32 BST

Hi Daniele,

You can set the text alignment of any submenu in the 9th element of the menu's array: "left", "right", or "center".

Another alternative would be to hide the select box (or the entire form) when the overlapping menu opens.

Hope that helps,

Kevin in the US


Poster: Ludus
Dated: Monday April 28 2003 - 12:05:53 BST

kevin3442 wrote:
Hi Daniele,

You can set the text alignment of any submenu in the 9th element of the menu's array: "left", "right", or "center".

Another alternative would be to hide the select box (or the entire form) when the overlapping menu opens.

Hope that helps,

Kevin in the US


Dear Kevin,

thanks for yr reply.
I don't need to set the text alignment, but the submenu alignment. As you can see, on mouse over all submenu appear on the right. Is it possible to set 1 or 2 submenu on the left? I need it because 1 sub menu is covered by a dropdown menu.

Daniele


Poster: John
Dated: Monday April 28 2003 - 17:35:28 BST

Can you post a URL so we can see what's happening? Easier for us to help that way.

To go a little further on Kevin's thought...
Quote:
Another alternative would be to hide the select box (or the entire form) when the overlapping menu opens.

If I understand what you're saying (a part of your form is being covered by some of the menu), you can set a <div name="daniele" id="daniele"> around your form (or, I think, just the part that's in trouble), then enter that name into "// ID of the div you want to hide on MouseOver (useful for hiding form elements)". Now when a menu drops over that <div> area it will actually hide, leaving the menu in the clear.


Poster: kevin3442
Dated: Monday April 28 2003 - 23:58:27 BST

Hi Daniele,

The div hiding John explained is a good approach when faced with pesky form elements. If you decide you just want to move a submenu over, you can specify an offset in the menu array's 3rd element (Menu Left), like so:
Code:
"offset=-50" // Menu Left

Include the quotes. The above example would move the menu 50 px to the left of where it would normall open. Use a positive value to move the menu to the right.

Hope that helps,

Kevin


Poster: kevin3442
Dated: Monday April 28 2003 - 23:58:27 BST

Hi Daniele,

The div hiding John explained is a good approach when faced with pesky form elements. If you decide you just want to move a submenu over, you can specify an offset in the menu array's 3rd element (Menu Left), like so:
Code:
"offset=-50" // Menu Left

Include the quotes. The above example would move the menu 50 px to the left of where it would normall open. Use a positive value to move the menu to the right.

Hope that helps,

Kevin