Issue with Vertical position of the popupmenu in <span>

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
harneet
Beginner
Beginner
Posts: 5
Joined: Wed Oct 04, 2006 5:22 am

Issue with Vertical position of the popupmenu in <span>

Post by harneet »

Hi,
We have a problem with the vertical alignment of the popup menu. The pop up menu is displayed a few levels below the actual position.
Our menu is displayed on click of an image which is placed inside <span> tags.
However, if placed inside <tr><td> tags instead of span, it starts appearing at the correct position. Its difficult for us to change our UI fully from <span> tags to <td > tags.
Is there a way to correctly position the menu's using the <span> tag itself?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

They are going to need to see the page in order to figure a solution.

Ruth
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

You can pass positional offsets to the popup() method.

Code: Select all

popup(menuName, imageName, topOffset, leftOffset)
So, when you call popup() in one of your spans, you could set a negative topOffset to bump the menu back up as needed.

Hope that helps,

Kevin
harneet
Beginner
Beginner
Posts: 5
Joined: Wed Oct 04, 2006 5:22 am

Post by harneet »

Thanks a lot Kevin...Your suggestion worked!
Post Reply