Vertical alignment of images in menu items

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
JMM
Advanced
Advanced
Posts: 13
Joined: Tue Nov 11, 2003 10:47 pm

Vertical alignment of images in menu items

Post by JMM »

How do you vertically images in menu items?

My menu items are declared like so:

Code: Select all

aI('image=/inside/images/layout/top_navbar/divider.gif; . . . ');
I've tried the 'align', 'imagealign', and 'valign' properties (in this case with the value of "top") in my style definition, my menu definition, and in menu items, all with no effect -- my images are being vertically aligned to the middle. See http://www.capitalandanimalhospital.com ... /test.html
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

I have never tried it myself, but according to the menu item properties quick ref:
imageposition (30) Will change the position of the associated menu item image. Valid values are top or bottom.
The imageposition property can also be used as a style property.

An alternative might be to do it the old-fashioned way... if the image is a gif, you could effectively shift it up or down by adding transparent space to the bottom or top of the image, without adding much to the size of the file.

Hope that helps,

Kevin
JMM
Advanced
Advanced
Posts: 13
Joined: Tue Nov 11, 2003 10:47 pm

Post by JMM »

Thanks, Kevin, I missed that, but it too has no effect. What's the deal? I tried it in my style definition and in my menu items -- no effect.

Thanks for the suggestion, but I'm really going to need the menu system to do what it's supposed to.
Post Reply