Menu positioning

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tubize
Advanced
Advanced
Posts: 27
Joined: Tue Sep 30, 2003 9:14 am

Menu positioning

Post by tubize »

I am using the latest menu and am having a problem positioning the horizontal menu in a table I had no problem with the previous version but I just can't get this one to work.

Basically, I can get it set up perfectly using offsets but if I remove or change the width of the favorites frame, the menu goes out of the table. I am using position=relative but it makes no difference.

You can see it at http://www.expat-online.com/club/awcb/.

Thanks.

John
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

TO bound it to the table, see the table bound example. Essentially you need to make a menu without top and left coordinates or offset and set its position to relative. Then move your call to menu_data into the cell where you want the menu bound to. This will make that menu (which is relatively positioned) stay in that cell. The others will figure out where they need to be just as if you had called menu_data at the beginning of your page. I didnt see you doing this in your page/code.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply