Kevin

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
donbmjr
Advanced
Advanced
Posts: 11
Joined: Tue Oct 07, 2003 10:33 pm

Kevin

Post by donbmjr »

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
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
donbmjr
Advanced
Advanced
Posts: 11
Joined: Tue Oct 07, 2003 10:33 pm

Kevin

Post by donbmjr »

Thanks Kevin, works great


Would you send me an Email, I have a question concerning the forum.
donbmjr@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;")
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Please do not create multiple topics on the same question.
John
Post Reply