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:21

Menu Length


Poster: bmarlin
Dated: Thursday March 27 2008 - 15:39:33 GMT

I have a menu that I want to be 760px wide with each menu item auto sizing to meet the 760px. How is this done. I put the code menuwidth="760px"; but the menu is not 760px. Here is the full code. Here is the link to the page http://www.sprayking.ca/index_new.shtml

fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
buildAfterLoad=true;




with(menuStyle=new mm_style()){
bordercolor="#999999";
borderstyle="solid";
borderwidth=0;
menuwidth="760px";
//itemwidth="110";
fontfamily="Verdana, Tahoma, Arial";
fontsize="95%";
fontstyle="normal";
fontweight="bold";
//headerbgcolor="#ffffff";
//headercolor="#000000";
offbgcolor="#f8971d";
offcolor="#ffffff";
onbgcolor="#000000";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=97);Shadow(color=#777777', Direction=135, Strength=3)";
padding=3;
//pagebgcolor="#82B6D7";
//pagecolor="black";
separatorcolor="#cccccc";
separatorsize=1;
subimage="/menu/arrow.gif";
subimagepadding=2;
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
orientation="horizontal";
position="relative";
style=menuStyle;
aI("text=Home;url=http://www.milonic.com/;");
aI("showmenu=Services;text=Services;");
aI("showmenu=Gallery;text=Gallery;");
aI("text=Franchise;url=http://www.milonic.com/;");
aI("text=Training;url=http://www.milonic.com/;");
aI("text=About Us;url=http://www.milonic.com/;");
aI("text=Careers;url=http://www.milonic.com/;");

}

with(milonic=new menuname("Services")){
overflow="scroll";
style=menuStyle;
aI("text=Paint Repair;url=http://www.milonic.com/menusample1.php;")
aI("text=Interior Repair;url=http://www.milonic.com/menusample2.php;")
aI("text=Windshield Repair;url=http://www.milonic.com/menusample24.php;")
aI("text=Glash Scratch Repair;url=http://www.milonic.com/menusample82.php;")
}

with(milonic=new menuname("Gallery")){
style=menuStyle;
aI("text=Paint Repair;url=http://www.milonic.com/cbuy.php;");
aI("text=Interior Repair;url=http://www.milonic.com/contactus.php;");
aI("text=Glass Scratch;url=http://www.milonic.com/newsletter.php;");
aI("text=Spot Repair Process;url=http://www.milonic.com/menufaq.php;");
}

drawMenus();

Re: Menu Length


Poster: Ruth
Dated: Thursday March 27 2008 - 18:49:48 GMT

Hi,

You have it in a div, inside a table set to 100% which is in a table that is 770px. So, try setting it in the main menu as
Code:
menuwidth='100%';
itemwidth='100%';


That should spread the menu the full width of that white area and spread the items out evenly.

Ruth