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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:49

aligning submenus to top


Poster: alex1709
Dated: Friday April 1 2005 - 0:21:17 BST

hello,

can anyone point me in a right direction, on how I could align all submenus to the same level as the mainmenu?

Sample of what I want to accomplish:
Image

Thanks in advance!


Poster: Ruth
Dated: Friday April 1 2005 - 4:16:26 BST

Are you saying you want the submenus to be immediately below the main menu? I'm not real good with diagrams, nor hand eye coordinations :lol: so I'm not sure what it is the arrows are trying to depict. Or are you saying you want the words on the main menu to be more or less centered in the drop width? You can use align="center"; in your menu definition for the main menu and it will put the words in the center of each item. If you mean you want the submenu to be immediately below the main, then set the subOffsetTop=0 and it should open immediately below the main menu. If you want the submenus to be the same width as the main menu item you have to set the main menu item width and then the submenu width.

Ruth


Poster: alex1709
Dated: Friday April 1 2005 - 14:44:38 BST

:)
What I have is this.

My main menu is horizontal. When you put the mouse over the selections, it opens up vertical submenus. The vertical submenus have their own submenus. What I need is the 1st and 2nd level submenus to be aligned equally to the top. Normally, the top part of the second level submenu is aligned to the same level as the selection that opens up the submenu


Poster: Ruth
Dated: Friday April 1 2005 - 15:20:10 BST

Well, I think you could probably use the offset= parameter to do that, but you'd have to set it for each submenu based on the height of the submenu off which it opened, and what happens if someone has really big text set? I think that would changed the height of the item. However, try this. Figure out the height of the submenu off which the next level opens, let's say it's 100px, in the second level submenu put top="offset=-100px"; that should open it 100px up from where it would normally open. There may be better solutions.

There is this pageabout methods and functions which might help if you know how to do any of that. I know it has things about getting and setting positions.

Ruth