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:51
vertical alignment of menu in a table cell
Poster: stunz
Dated: Saturday March 5 2005 - 1:47:41 GMT
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...
Poster: Ruth
Dated: Saturday March 5 2005 - 2:37:11 GMT
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:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
position="relative";
alwaysvisible=1;
orientation="horizontal";
style=menuStyle;
position="relative";
alwaysvisible=1;
orientation="horizontal";
Ruth