Centering horizontal menu
Centering horizontal menu
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
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
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
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
-
- Beginner
- Posts: 6
- Joined: Thu Jul 25, 2002 3:29 pm
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
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
Try...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.
center, // Screen Position
Last edited by John on Thu Jul 25, 2002 10:43 pm, edited 1 time in total.
John
Looks like you have the menu hard-fixed at 20px left (above). Remove to 20 (leave the comma) and try it again.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
I am a bit curious how you're getting by with a 0px width menu

John
-
- Beginner
- Posts: 6
- Joined: Thu Jul 25, 2002 3:29 pm
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....
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-

-
- Beginner
- Posts: 6
- Joined: Thu Jul 25, 2002 3:29 pm
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
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