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
vertical align attributes for text in menu items not working
Poster: cubefree
Dated: Wednesday August 18 2004 - 3:02:14 BST
I dowloaded the sample, Horizontal Navigational Menu in .zip format http://www.milonic.com/download.php?sampleid=1
And replaced the 'Menu Samples' item code with the following:
Code:
aI("text=Menu Samples Gets alot bigger;itemwidth=75;showmenu=Samples;");
Notice, the "Home" aI element it drops to the middle of the box.
I then experimented with:
Code:
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;valign='top';");
but could not get it to the top... I've had problems with this attribute in many of my applications of the product. Removing the style sheet did NOT affect the problem either.
Frustrating when properties don't affect the menu...
Poster: cubefree
Dated: Wednesday August 18 2004 - 16:56:33 BST
No effect.
Code:
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;valign=top;");
vertical alignment issue
Poster: darrennye
Dated: Friday August 20 2004 - 16:38:25 BST
I'm having a similar issue.
When I was using an older version 5 (I don't recall which version), all the text that appears in the menu bar at http://www.pridecenter.org, was vertically aligned in the middle.
Since upgrading to the latest Milonic, the "Home" and "Links" are vertically aligned in the middle, but the "About Us" and "Get Involved" are vertically aligned to the top.
I have just tried adding various combinations of the valign="middle"; or valign=middle; but nothing changed the verticial alignment. In addition, leaving out the quotes as suggested above, caused other color problems with the menu.
Here's the main HTML for calling the menu, which is in a table on the page:
<tr>
<td width="750" height="39" align="center" nowrap bgcolor="000066">
<script>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=155;
left=200;
alwaysvisible=1;
itemwidth=86;
orientation="horizontal";
position="relative";
aI("text=Home;url=/index.shtml;status=Back To Home Page;");
aI("text=About Us;showmenu=AboutUs;");
aI("text=Calendar & Events;url=/events/index.shtml;");
aI("text=Programs & Services;showmenu=ProgramsServices;");
aI("text=News & Publications;url=/newspublications/index.shtml;");
aI("text=Get Involved;showmenu=GetInvolved;");
aI("text=Links;url=/links/index.shtml;");
}
drawMenus();
</script>
</td>
</tr>