DHTML MENU Position

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
steverpayne
Beginner
Beginner
Posts: 5
Joined: Thu Mar 31, 2005 7:43 am
Location: Washington DC
Contact:

DHTML MENU Position

Post by steverpayne »

I am trying to position the menu in the middle or center in my navagation. Can someone tell me how this is done? i want it to be vertical but not covering up my logo?
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

Taken from:

http://milonic.com/menuproperties.php

"screenposition"

screenposition is useful for websites that are centered in orientation. By declaring "center" for screenposition, this will ensure that the menu will remain centered at all times. Other options for screen position are top, left, right, middle or bottom, plus a combination of 2 valid properties separated by a semi colon. Offsets can be declared for both top and left. The syntax for offsets is "offset=-100"; this will move the menu 100 pixels back from either top or left depending on the screenposition you have used.
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
steverpayne
Beginner
Beginner
Posts: 5
Joined: Thu Mar 31, 2005 7:43 am
Location: Washington DC
Contact:

sceen position

Post by steverpayne »

i have that right now i want it to be below the logo you can see it at http://www.rcym.org. do i put the offset in where the screeposition goes?

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
center=10;
orientation="vertical";
screenposition="left" offeset; <-------------------------here?
"offset=" <----------------------------------------------or here?
style=menuStyle;
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

I have one menu set up as follows. Just alter the "167" value to suit.

Code: Select all

with(milonic=new menuname("Main Menu")){
style=mainStyle;
screenposition = "center";
top = 167;
alwaysvisible=1;
followscroll=0;
orientation="horizontal";
overfilter="";
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
steverpayne
Beginner
Beginner
Posts: 5
Joined: Thu Mar 31, 2005 7:43 am
Location: Washington DC
Contact:

thanks

Post by steverpayne »

thanks so much....
Post Reply