Menu Length

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
bmarlin
Beginner
Beginner
Posts: 8
Joined: Tue Feb 21, 2006 6:45 pm

Menu Length

Post by bmarlin »

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://milonic.com/;");
aI("showmenu=Services;text=Services;");
aI("showmenu=Gallery;text=Gallery;");
aI("text=Franchise;url=http://milonic.com/;");
aI("text=Training;url=http://milonic.com/;");
aI("text=About Us;url=http://milonic.com/;");
aI("text=Careers;url=http://milonic.com/;");

}

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

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

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

Re: Menu Length

Post by Ruth »

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: Select all

menuwidth='100%';
itemwidth='100%';
That should spread the menu the full width of that white area and spread the items out evenly.

Ruth
Post Reply