5.3 horizontal position

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

5.3 horizontal position

Post by Maz »

I keep updating and waiting for the next release.
:(
Still cannot position the horizontal menu on the page in any version 5.
eg. center; 50px from top; 100% width would be nice.
"center","middle"; to "center"; only sets the menu centered to the top of the page.
Remove "center","middle"; completely and it sits left/top.

Top and left positioning in pixels is doing nothing.

I'm making these changes in the (horizontal) menu downloaded as is, before making any other changes.

Someone please tell me exactly how to set 50px from top, centered, 100% and I'll retest on the original menu, or please tell me there is a fix?

On this old mac
maz
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

OK some ideas, give them a shot....for v5

in your MAIN MENU STYLE put the following line as the last option:
align="center";

in your MAIN MENU DECLARATION which USES the main menu style, put the line:
screenposition="center";
and COMMENT OUT any mention of left=XX;

and then in each item in the main menu, put
itemwidth=10%; as your first option in the aI if you have ten items, put 20% if you have 5.

Those first two options gave me a menu that was centered on the screen and was however many pixels from the top of the window as I specified in the main menu's TOP property.
The last option gave me funny results. It doesn't read the values exactly as you'd think so you may have to play around to get the right things going. But it DOES recognize the percentages because I resize my IE6 browser and the menu shrinks and grows with it.

Best of luck!! Andy...any thoughts?
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Thanks for trying :)
The menu is still not moving down from the top of the page.
If that was a v5.4 I just noticed... I'll try again.

n.b. was a little confused by the align you mentioned vs alignment, I tried both. It does center. The 20% x 5 did not cover 100% and I tried both methods.

Thank you :|
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Make sure your main menu, not style, has its TOP property set to a value thats noticable. ie 50 And make sure its an integer, like TOP=50; not TOP="50".

You are going to have to play with the itemwidths to hopefully find a solution. I said 20% might not work, even with 5 items because I am unsure as to how its reading and rendering those values. Something I've done in the past is make the menu centered, but place it over a horizontal bar of the same color and look that extends 100%. Place the menu directly over it and it will blend in with the color bar and appear to stretch across the entire window.

BTW, you dont have the menu called in any tables right? Cuz that would impede its positioning. You're calling it from the beginning of the body of your doc?
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply