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:27
itemwidth problem when using table bound positioning
Poster: clwu
Dated: Tuesday May 25 2004 - 16:07:00 BST
Hi, group,
I am playing with the example "Relative Positioning (Table Bound)" from: http://www.milonic.com/menusample9.php
And I found a problem when I add "itemwidth=100;" into the section of "Main Menu" ( I like to see the items on main menu have a fixed width).
Then you will see the first and last item are streched to fit the width of the table cell, which looks ugly. Here is how it looks like:
This is the embeded code for drawing main menu:
<script>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=155;
left=200;
itemwidth=100;
alwaysvisible=1;
orientation="horizontal";
overfilter="";
position="relative";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");
}
drawMenus();
</script>
Can anybody know how to fix this problem? Thanks.
Chunlei