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:27
Horizontal Top Menu Width Issue
Poster: Idee
Dated: Friday October 28 2005 - 1:59:41 BST
Hi
I replaced my files with the new version release 5.734.
My top menu is set to 100% menuwidth. With the previous version, the top menu was 100% but the items sit quite closely and tightly. It looked all good. But now with new version, it spreads the menu items to the 100% width and it covers the whole bar.
Is there any way, I could set the the width of menuitems to some fixed value and menu can be 100%.
Sample code is like that...
Code:
with(milonic=new menuname("top_menu"))
{style=topmenuStyle;top=2;left=2;margin=1;menuwidth="100%";alwaysvisible=1;orientation="horizontal";position="relative";
aI('text= Home ;padding=4;url=home');
aI('text= Email ;padding=4;clickfunction=javascript:showEmail();;');
};
{style=topmenuStyle;top=2;left=2;margin=1;menuwidth="100%";alwaysvisible=1;orientation="horizontal";position="relative";
aI('text= Home ;padding=4;url=home');
aI('text= Email ;padding=4;clickfunction=javascript:showEmail();;');
};
Thanks
Poster: Andy
Dated: Friday October 28 2005 - 12:59:18 BST
Version 5.734 should be back to what it was.
Do you have a URL that we can see?
Poster: Idee
Dated: Sunday October 30 2005 - 19:59:44 GMT
Hi Andy
Sorry I don't have a url where you could see it. I could give you the styles I have set for my top menu.
Code:
with(topmenuStyle=new mm_style()){
offcolor="#000000";
bordercolor=border_clr;
borderstyle="solid";
borderwidth=1;
separatorcolor=separator_clr;
padding=0;
pagecolor="black";
pagebgcolor="#84AAE7";
headercolor="#000000";
headerbgcolor="#eeeeee";
subimage="arrowdown.gif";
subimagepadding="2";
itemheight=18;
headercolor="#ffffff";
fontstyle="normal";
fontsize="11";
fontfamily="Tahoma"; //Arial"; //
onborder=onborder_clr;
menubgimage=sMenuImagePath + "topmenu.gif"; //sets the image to be used for the entire menu background
separatorimage= sMenuImagePath + "topmenu_separater.gif";
separatorheight=15;
separatoralign="center";
separatorsize=2;
separatorpadding=4;
}}
offcolor="#000000";
bordercolor=border_clr;
borderstyle="solid";
borderwidth=1;
separatorcolor=separator_clr;
padding=0;
pagecolor="black";
pagebgcolor="#84AAE7";
headercolor="#000000";
headerbgcolor="#eeeeee";
subimage="arrowdown.gif";
subimagepadding="2";
itemheight=18;
headercolor="#ffffff";
fontstyle="normal";
fontsize="11";
fontfamily="Tahoma"; //Arial"; //
onborder=onborder_clr;
menubgimage=sMenuImagePath + "topmenu.gif"; //sets the image to be used for the entire menu background
separatorimage= sMenuImagePath + "topmenu_separater.gif";
separatorheight=15;
separatoralign="center";
separatorsize=2;
separatorpadding=4;
}}
Is there any further information you would like to know?
Thanks a lot.