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