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:12
Menu/Item Height
Poster: jhohl
Dated: Wednesday March 1 2006 - 22:57:38 GMT
I cannot figure out why this menu cannot be made shorter in height. I want to make it about 75% of the current size, but no matter what I set the menuheight attribute to, it will not get any smaller. See http://www.cpspress.com/palmer/assignments/timeline_schedule_a.html for live example.
Style is:
Code:
fontfamily="Verdana, Tahoma, Arial";
fontsize="10";
fontstyle="normal";
offbgcolor="#0F639F";
offcolor="#ffffff";
onbgcolor="#000000";
oncolor="#ffffff";
padding=4;
pagebgcolor="#000000";
pagecolor="ffffff";
menuheight="100";
separatorheight=10;
itemheight=10;
fontsize="10";
fontstyle="normal";
offbgcolor="#0F639F";
offcolor="#ffffff";
onbgcolor="#000000";
oncolor="#ffffff";
padding=4;
pagebgcolor="#000000";
pagecolor="ffffff";
menuheight="100";
separatorheight=10;
itemheight=10;
and the code to generate the menu is:
Code:
menubgcolor="#000000";
alwaysvisible=1;
position="relative";
itemwidth="100%";
itemheight=10;
menualign="left";
left=10;
orientation="horizontal";
style=subMenuStyle;
aI("align=center;text=Schedule;url=timeline_schedule_a.html;");
aI("align=center;text=Correspondence;url=timeline_correspondence_a.html;");
alwaysvisible=1;
position="relative";
itemwidth="100%";
itemheight=10;
menualign="left";
left=10;
orientation="horizontal";
style=subMenuStyle;
aI("align=center;text=Schedule;url=timeline_schedule_a.html;");
aI("align=center;text=Correspondence;url=timeline_correspondence_a.html;");
Thanks for any help.
Poster: Migru
Dated: Thursday March 2 2006 - 0:32:26 GMT
Hi
menuheight="100";
is not doing anything. Take it out completely.
Try setting the fontsize to "10px" or "12px" rather than 100%, as cross browser capability then is better.
Try playin with padding=1; better than 4 or 6;
That reduces height.
Your margin setting too doesn´t seem to be useful. Check if it is necessary.
Michael