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

Centering Text Inside of each Menu


Poster: JakeRi
Dated: Tuesday July 18 2006 - 17:40:33 BST

When my webpage was resized by using the "wheel mouse and ctl key" inside of IE6, my menu would change widths. However I didn't want this because I wanted everyting to stay propotional to the other tables. So, I found the example of setting menuwidth="100%" and itemwidth="100%" to correct this problem. However,now all of the text in each menuitem isn't centered. They seem to be left justified. I wold like the words FAQ, Search,... to be centered inside each box. Any ideas? I attached my code below.

Thanks,
Jake




<!-- Menu -->
<TABLE cellSpacing=0 cellPadding=0 border=2 height="30" width=765>
<TBODY>
<TR bgColor=white width = 90%>
<TD align = center >
<script>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
orientation="horizontal";
alwaysvisible=1;
menuwidth="100%";
itemwidth="100%";
menualign="center";
top=215;
left=10;
position="relative";

aI("text=Home ;url=http://www.milonic.com/;");
aI("text=Adopt A ;url=http://www.milonic.com/;");
aI("text=About s ;url=http://www.milonic.com/;");
aI("showmenu=ChildInfo;text=ChildInformation;");
aI("text=FAQ;url=http://www.milonic.com/;");
aI("text=Search;url=http://www.milonic.com/;");
}
drawMenus();
</script>
</TD>
</tr>
</tbody>
</TABLE>


Poster: Ruth
Dated: Tuesday July 18 2006 - 17:44:52 BST

Hi,

Text alignment is done with the property align, so you'd set align="center"; to center text.

Ruth


Poster: JakeRi
Dated: Tuesday July 18 2006 - 17:53:40 BST

Hey thanks!!


Jake