vertical align attributes for text in menu items not working

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
cubefree
Super Advanced
Super Advanced
Posts: 82
Joined: Fri Aug 01, 2003 3:16 am
Location: Seattle, WA
Contact:

vertical align attributes for text in menu items not working

Post by cubefree »

I dowloaded the sample, Horizontal Navigational Menu in .zip format http://milonic.com/download.php?sampleid=1

And replaced the 'Menu Samples' item code with the following:

Code: Select all

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: Select all

aI("text=Home;url=http://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...
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Try removing the ' ' around 'top'.
John
User avatar
cubefree
Super Advanced
Super Advanced
Posts: 82
Joined: Fri Aug 01, 2003 3:16 am
Location: Seattle, WA
Contact:

Post by cubefree »

No effect.

Code: Select all

aI("text=Home;url=http://milonic.com/;status=Back To Home Page;valign=top;");
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Try v5.42.
John
darrennye
Beginner
Beginner
Posts: 2
Joined: Fri Sep 19, 2003 5:13 pm
Contact:

vertical alignment issue

Post by darrennye »

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>
Post Reply