Re: menu offset prob. in tables: problem known, solution not

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
BW
Beginner
Beginner
Posts: 7
Joined: Wed Sep 24, 2003 9:09 pm

Re: menu offset prob. in tables: problem known, solution not

Post by BW »

Hi

This note refers to a test example viewable at:
http://www.biomodus.com/category_dir_fu ... index.html

Earlier, I posted a question with this subject line:
"menu in a simple table doesn't align properly"

Thanks to "jgillet" for offering some possibilities, but it seems the issue is something else. After many iterations of html/js elimination or addition to i.d. the problem, I have narrowed the focus to one issue.

To review, I have a table with cells on the left and right with rowspan=2 which leaves a third cell in the middle that is split into two rows. My Milonic menu is in the lower middle cell.

The square cells on each are filled with rotating images using a javascript. It is the insertion of images into the cells throw off the positioning of the submenu somehow. Apparently the dimensions of the images affects the menu script?

Additionally, all images that I was calling into the cells were the same size, so I set the width and height dimensions in the <img> tag. That was also enough to throw off the submenu positioning.

I had to remove the width and height values in the <img> tag and not allow images to be inserted (e.g. removed the js call between <td>...</td>) before the submenu could be correctly positioned. BTW, the positioning problem occurs without the rotating images script. It is the image that is the problem.

On the link above you can see both cases.

So, not sure what is going on and certainly don't know how to fix it, but thought it might gives some clues to you javascript pros out there....

BW
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Change <td valign="bottom">

Hopefully that's all it is.
Regards
maz
BW
Beginner
Beginner
Posts: 7
Joined: Wed Sep 24, 2003 9:09 pm

Post by BW »

Thanks for the tip maz

Unfortunately it didn't change anything....

To solve the problem. I must remove the <img> tags and any dimension values (e.g. height, width) from the <td> tags to return the submenu to the correct position under the main menu. One I do those things, it works great. (Can see in the stripped example - url in earlier post)

Each suggestion teaches me something more!

BW
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I've never seen style tags used in a table like that.
If your menu is position=relative (to the table) then you should be using top=0;

maz
Post Reply