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

SubImage Padding / Alignment


Poster: Kman
Dated: Thursday December 9 2004 - 19:21:33 GMT

While using an arrow.gif as a subimage, I can get the submenu to display the subimage.

However, when I have a submenu that contains both a subimage for one menu item and no subimage for another menu item, the padding (controlled by the the SubMenuStyle parameters) is ignored for the submenu items with the arrow subimage.

I would like the left side alignment to be consistent - as on the Milonic.com home page main menu --> DHTML Menu --> Page Integration
(no subimage) vs. DHTML Menu --> Menu Quick Reference Guides (with subimage)

My code is:

with(SubMenuStyle=new mm_style()){
onbgcolor="#D96002";
oncolor="#FFFFFF";
offbgcolor="#FCDE60";
offcolor="#000000";
borderstyle="solid";
borderwidth=0;
fontsize="10";
padding="3 12 3 12";
fontstyle="normal";
fontfamily="Arial,Helvetica,sans-serif";
subimage="images/menu/arrow.gif";
subimagepadding="2";
}


Thanks very much for your help.

K


Poster: Ruth
Dated: Thursday December 9 2004 - 23:54:10 GMT

Try
Code:
padding="3px 12px 3px 12px";


Ruth


Poster: Kman
Dated: Friday December 10 2004 - 16:50:15 GMT

Thanks. By using that code + downloading v5.62 (I was using v5.21) the problem is solved :)

K