Submenu center align below mainmenu items

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
MRI
Advanced
Advanced
Posts: 12
Joined: Tue Jan 27, 2004 10:03 am

Submenu center align below mainmenu items

Post by MRI »

Hi

I'm trying to center align the submenus below the mainmenu items. The mainmenu items have variable width.

http://connect.inet-designer.dk


Best regards
Martin
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

As far as I know there's not an option of 'center' the submenu under the main menu item that calls it. But, there was a discussion about a function to find the exact position of a horizontal menu item so that one could then set the drop down submenu exactly as one wanted.
http://milonic.com/forum/viewtopic. ... light=gpos Hope this helps. I believe they actually figured out a function to do that.

Ruth
MRI
Advanced
Advanced
Posts: 12
Joined: Tue Jan 27, 2004 10:03 am

Post by MRI »

Looked at the topic You mentioned. It was just a little bit more avanced solution, than I was hoping for. So I just hardcoded the subitem width and offset.

Thanks for your reply anyhow.

Best regards
Martin
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

If you just want the text centered, the simple solution is align="center"; in your styles.

maz
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Yes, MRI it is, I'm still trying to figure it out because I want to center my submenus but also leave my main menu in the screen position center. So,that precludes using the left offset since the main will change position depending on the what is center in a particular user's browser.

Ruth
Post Reply