Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:53

centrally positioning a menu


Poster: juliaw
Dated: Monday October 2 2006 - 15:55:03 BST

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://www.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


Poster: Ruth
Dated: Monday October 2 2006 - 17:28:42 BST

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


Poster: juliaw
Dated: Monday October 2 2006 - 22:16:01 BST

Sorted - thanks for your help,

Julia