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:15
Position Relative Menu in <td></td> Adding space
Poster: rwfresh
Dated: Friday February 10 2006 - 17:24:24 GMT
Hi All,
I have a menu inside a <td></td> The contents of the main menuitem is an image rollover. I need this cell to pull tight against the cell to the right of it.
I notice in IE (6.0.2900) there is space added to the right of the menu.
this creates whitespace inside this cell and breaks my design.
It renders fine in the latest FireFox. I've tried everything i can think of. Is this fixable? If not i need a new menu and just bought a license of milonic.
Poor me.
-----------------------
Code:
<td style="height:28px; width:108px;"><script>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=155;
left=200;
margin=0;
itemwidth=108;
menuwidth=108;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("url=company_overview.html;align=right;imageheight=28;imagewidth=108;imagepadding=0;
itemwidth=108;padding=0;margin=0;
image=images/nav/CorpNav_Company.gif;
overimage=images/nav/CorpNav_Company_over.gif;imagealign=right;showmenu=Company;");
}
drawMenus();
</script></td>
<td style="height:28px; width:1px;"><img src="images/nav/CorpNav_seperator.gif" alt="sep"></td>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=155;
left=200;
margin=0;
itemwidth=108;
menuwidth=108;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("url=company_overview.html;align=right;imageheight=28;imagewidth=108;imagepadding=0;
itemwidth=108;padding=0;margin=0;
image=images/nav/CorpNav_Company.gif;
overimage=images/nav/CorpNav_Company_over.gif;imagealign=right;showmenu=Company;");
}
drawMenus();
</script></td>
<td style="height:28px; width:1px;"><img src="images/nav/CorpNav_seperator.gif" alt="sep"></td>
Code:
with(menuStyle=new mm_style()){
bordercolor="";
borderstyle="";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="";
headercolor="";
offbgcolor="";
offcolor="";
onbgcolor="";
oncolor="";
padding=0;
margin=0;
pagebgcolor="";
pagecolor="";
separatorcolor="";
separatorsize=0;
subimage="";
subimagepadding=0;
}
with(milonic=new menuname("Company")){
style=menuStyle;
aI("text=Overview;url=company_overview.html;");
aI("text=Company Profile;url=company_profile.html;");
aI("text=Management Team;url=company_management.html;");
aI("text=Careers;url=company_careers.html;");
}
bordercolor="";
borderstyle="";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="";
headercolor="";
offbgcolor="";
offcolor="";
onbgcolor="";
oncolor="";
padding=0;
margin=0;
pagebgcolor="";
pagecolor="";
separatorcolor="";
separatorsize=0;
subimage="";
subimagepadding=0;
}
with(milonic=new menuname("Company")){
style=menuStyle;
aI("text=Overview;url=company_overview.html;");
aI("text=Company Profile;url=company_profile.html;");
aI("text=Management Team;url=company_management.html;");
aI("text=Careers;url=company_careers.html;");
}