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

Kevin


Poster: donbmjr
Dated: Tuesday October 28 2003 - 23:36:17 GMT

Need to center the text on each link on the main menu bar(horizontal) only, I thought
the align="center": would do it, I tried several combinations, have so many other things to do, sometimes you cannot see the forest through the trees.

Don


Poster: kevin3442
Dated: Tuesday October 28 2003 - 23:54:52 GMT

The following is an extension of this original thread.

Hi Don,
Don wrote:
Need to center the text on each link on the main menu...

I suppose I could've figured that, if I had bothered to look at the code you posted... sorry. Anyway, you tried it the way I probably would have, by using align="center"; in the menu properties. I tried that myself and... hmmmmm... you're right, it doesn't seem to work. Good news, however. The docs for the align property also claim that it'll also work as a menu style property and as a menu item property (in the aI() call). I have tested locally (using ie/win2k) and found that it does work as both a style property and an item property, with use in an item overriding use in a style. Looking at your code, it occurs to me that you actually wanted to center the items in your submenus as well. Since they all use the same style, just set align="center"; in your style1. Alternatively, you could center only the main menu items using two approaches: (1) define a separate style for your main menu, and set the align in it. (2) set align=center; (no quotes) in each of the main menu's ai() items. I'll go ahead and report that using align as a menu property does not work.

Hope that helps,

Kevin

Kevin


Poster: donbmjr
Dated: Wednesday October 29 2003 - 0:39:35 GMT

Thanks Kevin, works great


Would you send me an Email, I have a question concerning the forum.
donbmjr __at__ yahoo.com


aI("align=center;text=Home;url=/index.php;")
aI("align=center;text=Drivers/Teams;showmenu=drivers;")
aI("align=center;text=Schedule;url=/nascar-winston-nextel-cup-schedule.php;")
aI("align=center;text=Tracks;url=/nascar-winston-nextel-cup-tracks.php;")
aI("align=center;text=2003 Results;url=/nascar_races/nascar-winston-nextel-cup-results-2003.php4;")
aI("align=center;text=2003 Stats;showmenu=yearstats;")
aI("align=center;text=Historical Stats;showmenu=allstats;")
aI("align=center;text=Fun Facts;showmenu=fun;")


Poster: John
Dated: Wednesday October 29 2003 - 0:43:43 GMT

Please do not create multiple topics on the same question.