centrally positioning a menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
juliaw
Beginner
Beginner
Posts: 8
Joined: Mon Oct 02, 2006 3:37 pm

centrally positioning a menu

Post by juliaw »

i apologise for asking such a basic question, but I have followed the instructons in the FAQs and I am still struggling to get my menu centered on the page.

the menu_data.js file contains the following:

with(menuStyle=new mm_style()){
styleid=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="10pt";
offcolor="#000000";
oncolor="#000000";
rawcss="padding-left:27px;padding-right:27px";
separatorimage="disco_sep.gif";
separatorsize=1;
}

with(milonic=new menuname("Main Menu")){
screenposition="center";
alwaysvisible=1;
itemheight=31;
itemwidth=100;
left=10;
orientation="horizontal";
style=menuStyle;
top=10;
aI("align=center;bgimage=disco_left.gif;text=Home;url=http://milonic.com/;");
aI("align=center;bgimage=disco_mid.gif;showmenu=Milonic;text=Teams;");
aI("align=center;bgimage=disco_mid.gif;showmenu=Partners;text=Contacts;");
aI("align=center;bgimage=disco_mid.gif;showmenu=Links;text=Links;");
aI("align=center;bgimage=disco_mid.gif;showmenu=MyMilonic;text=MyMilonic;");
aI("align=center;bgimage=disco_right.gif;text=Search;");
}



This is downloaded only today and is showing fine on the page but just to the left rather than in the center.

Thank you to anyone who will help with this basic problem

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

Post by Ruth »

Hi,
juliaw wrote:i apologise for asking such a basic question, but I have followed the instructons in the FAQs and I am still struggling to get my menu centered on the page.
Your menu shows top=10;left=10; if you want it centered remove the left=10 and use screenposition="center"; Then set the top= to whatever the top position you want if 10 is not correct.

If you take a look below my name you'll see some links, the bottom 3 go to the various properties available either for styles of menus [style properties], positioning, margin visibility and other menu related items [menu properties] or styles that can be set up for individual items [item properties].

Ruth
juliaw
Beginner
Beginner
Posts: 8
Joined: Mon Oct 02, 2006 3:37 pm

Post by juliaw »

Sorted - thanks for your help,

Julia
Post Reply