vertical alignment of menu in a table cell

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
stunz
Beginner
Beginner
Posts: 2
Joined: Sat Mar 05, 2005 2:33 am

vertical alignment of menu in a table cell

Post by stunz »

I like this menu and have embedded the main menu code in an js file to include in the top row of a table.

Now, when it was a free floating menu, it showed horizontally ok with submenus dropping down as expected, but when i included it into the table cell, it converted itself to a vertical menu. The table is a basic one row spanning three columns.

Does this have something to do with position="relative"; that is required to be inserted into the main menu structure? I've tried absolute and that just pokes the menu at the top left hand side of the table, still in a vertical position.

I can only use this menu system if i can get it to work in a table and my preferred layout for the menu is across the top, with submenus coming down and out.

thanks for any info on how to resolve...
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,
Check the orientation= and make sure it's there. The default orientation is vertical, so if there is no code saying orientation="horizontal" it will be vertical. i.e.

Code: Select all

with(milonic=new menuname("Main Menu")){
style=menuStyle;
position="relative";
alwaysvisible=1;
orientation="horizontal";
Ruth
stunz
Beginner
Beginner
Posts: 2
Joined: Sat Mar 05, 2005 2:33 am

Post by stunz »

thanks Ruth. that solved the problem.
Post Reply