horiztonal menu w/ horizontal subs - center links? [solved]

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

horiztonal menu w/ horizontal subs - center links? [solved]

Post by nwilcox »

LINK REMOVED

I have a horizontal menu system using a horizontal sub menu structure

I'd like to be able to have the text links in the sub menu come up in the center of the menu block.

I've tried using type=header for a spacer elmeent but the menu will be dynamic so this solution really isn't going to work.

Is there a property or style that I can apply on the submenu items that will make them display in the center of the blur bar?

Thanks!
Last edited by nwilcox on Fri Aug 21, 2009 8:35 pm, edited 2 times in total.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Try using menualign='center'; in the submenus. That will shift the submenu items to the center of your black span. If you want to spread them out a bit you'll need to but an itemwidth as an example the following would shift the items almost all the way across that black span.

Code: Select all

with(milonic=new menuname("is")){
orientation="horizontal";
style=menuStyleSub;
menuwidth="785px";
menuheight="22px";
menualign='center';
itemwidth=80;
Hope this helps.

Ruth
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

thanks Ruth... I'll give that a shot!
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

worked like a champ Great find!

I couldn't find that property in the documentation.
Post Reply