Centering horizontal menu

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
wolfe70
Beginner
Beginner
Posts: 6
Joined: Sat Jul 13, 2002 12:46 am

Centering horizontal menu

Post by wolfe70 »

I have read all the "posts" and am more confussed than when I started.

Can I edit the script so that no matter what size monitor is viewing my page, the menu would alway be equidistant from the sides of the page? I would alway like it to be centered on all monitors and browsers.

Now, I have it centered using the
// Menu Top - The Top position of the menu in pixels and
// Menu Left - The Left position of the menu in pixels

However, when my friend w/ a larger monitor views my site he says that the menu is more on the left and less on the right.

I have also seen the:
// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"

does this have any control over the menu for my purposes?

If so how do edit taht script and what would I do with the "Menu Top" & "Menu Left" script.

Just getting started with script.

Thanks
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

The menu scripts are plain text so atext editor is the best solution until we get the menu builder complete.

If add "center" to Screen Position this will position your menu in the center on all browser sizes.

Cheers
Andy
wolfe70
Beginner
Beginner
Posts: 6
Joined: Sat Jul 13, 2002 12:46 am

Post by wolfe70 »

Still a little confused. The following is part of the script.

Can you edit it like it should read for centered?

// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1, // Properties Array - this is set higher up, as above
1, // Always Visible - allows the menu item to be visible at all time (1=on/0=off)


Thanks,

The Wolfe
MrImperfect
Beginner
Beginner
Posts: 6
Joined: Thu Jul 25, 2002 3:29 pm

Post by MrImperfect »

Hey, I am also having trouble just centering my menu- it wont budge from where it is at. I have this so far but it wont do anything

addmenu(menu=[ // This is the array that contains your menu properties and details
"mainmenu", // Menu Name - This is needed in order for the menu to be called
0, // Menu Top - The Top position of the menu in pixels
20, // Menu Left - The Left position of the menu in pixels
0, // Menu Width - Menus width in pixels
1, // Menu Border Width
"center", // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1, // Properties Array - this is set higher up, as above
1, /

Thanks
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

wolfe70 wrote:Still a little confused. The following is part of the script.

Can you edit it like it should read for centered?

// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
etc.
Try...

center, // Screen Position
Last edited by John on Thu Jul 25, 2002 10:43 pm, edited 1 time in total.
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

MrImperfect wrote:Hey, I am also having trouble just centering my menu- it wont budge from where it is at. I have this so far but it wont do anything

20, // Menu Left - The Left position of the menu in pixels
0, // Menu Width - Menus width in pixels
Looks like you have the menu hard-fixed at 20px left (above). Remove to 20 (leave the comma) and try it again.

I am a bit curious how you're getting by with a 0px width menu :!:
John
MrImperfect
Beginner
Beginner
Posts: 6
Joined: Thu Jul 25, 2002 3:29 pm

Post by MrImperfect »

When I had the menu width at 0 it was because I had just tried it and forgot to remove the zero. I have tried everything I can think of- NOTHING seems to work, you can goto http://www.praystation7.com/mrimperfect that is where I am testing it.
As far as the dead set 20 or 200, I have removed those and put them back SEVERAL times and NOTHING seems to work, I repeated myself- :) sorry....
wolfe70
Beginner
Beginner
Posts: 6
Joined: Sat Jul 13, 2002 12:46 am

Post by wolfe70 »

Thanks,

Beleive it or not I got it.
MrImperfect
Beginner
Beginner
Posts: 6
Joined: Thu Jul 25, 2002 3:29 pm

Post by MrImperfect »

Oh no.....I mean really? Please kind sir, tell me how you got it. I am so desperate to know how to make it work. Thanks
wolfe70
Beginner
Beginner
Posts: 6
Joined: Sat Jul 13, 2002 12:46 am

Post by wolfe70 »

Here's my script:

addmenu(menu=[ // This is the array that contains your menu properties and details
"mainmenu", // Menu Name - This is needed in order for the menu to be called
90, // Menu Top - The Top position of the menu in pixels
, // Menu Left - The Left position of the menu in pixels
122, // Menu Width - Menus width in pixels
1, // Menu Border Width
"center", // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1, // Properties Array - this is set higher up, as above
Post Reply