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:33
Spacing between the dropdown menu and sub menus
Poster: okanaganracing.com
Dated: Thursday September 1 2005 - 1:22:22 BST
How do I adjust the spacing between the drop down menu and it's sub menu. I have moved the shadow to 180 because it is not recognized in Netscape 8. Now the sub menus are right next to the drop downs.
Poster: Ruth
Dated: Thursday September 1 2005 - 2:50:02 BST
As long as you are not talking about off setting the first level from a horizontal menu, if you look at the top of your menu_data.js file you will see subOffsetTop= and subOffsetLeft= that's where you put how many pixels you want to offset the submenu from the parent.
The shadow and things are actually from the IE Filters and Transitions. If you want to see the different ones you could use there's an interactive DEMO It's the first one on the Demos page. You are correct that none of that will show in any browser but IE, nor will they affect how the menu looks in any but IE.
Ruth
I need to go right?
Poster: okanaganracing.com
Dated: Thursday September 1 2005 - 4:06:26 BST
Hi Ruth,
Here is the link that I am working on right now. I am making a template for the rest of the site.
http://www.okanaganracing.com/blanktemplate.htm
Poster: Ruth
Dated: Thursday September 1 2005 - 4:41:20 BST
Hi,
The part you want to adjust is at the top of the menu_data.js file
Code:
_subOffsetTop=2;
_subOffsetLeft=-2;
_subOffsetLeft=-2;
Those will not do anything to the first level submenus, the Events, Clubs, ChooseSport etc. Those menus drop from a horizontal and position themselves immediately at the bottom of the horizontal menu. You can do some adjusting of that by using top="offset=x"; and left=offset=y"; in the actual submenu. But, you'd need to check it in different browsers to see if they positioned the same in them.
The subsub menus, the ones that come off your first vertical dropdowns will be positioned based on the coding in the top of the menu_data.js file. Right now you the left position set at -2 so it will move left over its parent menu. If you want it to be farther right, change that to 0 which puts it at the same place as the right side of its parent, or set it to a positive to shift it even farther right.
Hope that helps.
Ruth
Thanks!
Poster: okanaganracing.com
Dated: Thursday September 1 2005 - 5:00:13 BST
Hi Ruth,
Thanks, that worked wonderfully.
I went with these settings:
_subOffsetTop=2;
_subOffsetLeft=3;
Thanks again,
Will