SubImage Padding / Alignment

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Kman
Advanced
Advanced
Posts: 14
Joined: Fri May 14, 2004 6:56 pm

SubImage Padding / Alignment

Post by Kman »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Try

Code: Select all

padding="3px 12px 3px 12px"; 
Ruth
Kman
Advanced
Advanced
Posts: 14
Joined: Fri May 14, 2004 6:56 pm

Post by Kman »

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

K
Post Reply