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: Thursday February 8 2018 - 06:02:15

offsets not working for horizontal, relative nav


Poster: nif
Dated: Friday August 10 2007 - 11:14:51 BST

hi there,

i am struggling to get offsets to work for a horizontal, relative navigation.
the offsets are being totally ignored.

a partial solution would be for someone to tell me how to specify a height for my items and then have the text for each item and the separators centrally aligned on the vertical axis. if i could solve this then at the very least, my issue with not being able to set the _subOffsetTop would not be too much of an issue, although, i still need to set my _subOffsetLeft value.

you can see the issue here:
http://www.electricpencilinteractive.co ... t/home.php

this has these values set for offsets:
_subOffsetTop=15;
_subOffsetLeft=-5;

the milonic code is in directory milonic:
http://www.electricpencilinteractive.co ... pt/milonic
the 2 main files are the menu_data.js file and the main_nav.js file

the referenced classes are in:
http://www.electricpencilinteractive.co ... t/mypt.css

i am having this problem on a different site too, however, the design caters for it and so i don't need to offset the subnavs.
this site though really needs the nav to sit 1 pixel below the coloured bar and -5px on left.
if you take a look in firefox, the subnav appears right below the text which is worse than in ie, where it appears to sit below the coloured bar, but minus the extra 1 px i need.

any help would be much appreciated.

thanks,
nikki


Poster: Ruth
Dated: Saturday August 11 2007 - 3:40:45 BST

Hi,

That subOffset property only applies to subs opening from vertical parent menus. In order to change the position of a sub from the horizontal parent you will need to code the top and left positions using top="offset=x"; left="offset=y"; where x and y are your pixel values. The reason the subOffset properties don't do anything on horizontal is that in the vast majority of cases you want the subs to open below the parent item, matching the left side with the left side of the parent and the top of the sub right below the bottom of the parent.

Ruth


Poster: MartinSpeed
Dated: Tuesday August 21 2007 - 9:19:42 BST

I too was having this problem. The above sounds like a bit of a fix. Will this be corrected for future version?

I understand the vast majority may want it so, but what about the others? If you want the menu to sit right below, then set the offsets to be 0,0. A solution to suit everyone.

Seems a bit strange that what we want is assumed :-\


Poster: Ruth
Dated: Thursday August 23 2007 - 19:47:18 BST

Hi,

You'll have to contact Milonic to ask for such a feature. The vast majority of people would want their vertical sub to open immediately at the bottom of the horizontal parent. I have no idea, since I'm not a programmer, just what such a feature would entail in programming since it would have to be cross platform, and position the same in all browsers. I believe that is why the top="offset=" was created as a feature. But, heck what do I know :)

Ruth