Changing sub menu vertical offset

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dav
Beginner
Beginner
Posts: 9
Joined: Wed Dec 27, 2006 1:39 pm

Changing sub menu vertical offset

Post by dav »

Hello,

How can I changed the offset of the sub menu's using the main menu as their starting point? I have tried "top=10;", "_subOffsetTop=10;" and "offset=10;".

"top=10" uses the top of the browser window to start the offset, not what I am after. _subOffsetTop didn't appear to do anything and "offset=10" was a last ditch attempt which I knew wasn't going to work.

My menu is styled using CSS.

http://gonegothic.com/_test/milonic/index.htm

Please help.

Thanks.
dav
Beginner
Beginner
Posts: 9
Joined: Wed Dec 27, 2006 1:39 pm

Post by dav »

Oh another thing. Why can I not get sub image to work? I tried using an arrow image for the menus with drop downs but nothing I do seems to work. I add a valid URL to "subimage" but it never works.

Any ideas?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

The subOffsetTop and Left only work with vertical menus, since normally one wants the offset from a horizontal menu to be at the bottom of the parent item. So, the menu system has another way to do it for first level subs from a horizontal menu. You do it in each menu using top= and left= with the 'offset=x'; i.e.

top="offset=10"; left="offset=10";

negative numbers can be used with this.

You can also use this type of setup to fine tune positioning for a main menu, however not with one that is relatively positioned since that is the position. Let's say you have a main menu set to screenposition="center"; but what you really need is for it to be just a little bit more to the left you'd set up the main menu as screenposition="center"; left="offset=-50"; which will shift it 50 px to the left.

Hope this helps.

Ruth
Post Reply