Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:05

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


Poster: BW
Dated: Friday October 10 2003 - 13:29:21 BST

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


Poster: Maz
Dated: Friday October 10 2003 - 17:12:21 BST

Change <td valign="bottom">

Hopefully that's all it is.
Regards
maz


Poster: BW
Dated: Friday October 10 2003 - 17:26:52 BST

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


Poster: Maz
Dated: Friday October 10 2003 - 18:27:34 BST

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