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:41
Submenu center align below mainmenu items
Poster: MRI
Dated: Monday February 23 2004 - 10:11:52 GMT
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
Poster: Ruth
Dated: Monday February 23 2004 - 14:09:08 GMT
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://www.milonic.com/forum/viewtopic.php?t=3632&highlight=gpos Hope this helps. I believe they actually figured out a function to do that.
Ruth
Poster: MRI
Dated: Monday February 23 2004 - 15:20:33 GMT
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
Poster: Maz
Dated: Monday February 23 2004 - 16:23:05 GMT
If you just want the text centered, the simple solution is align="center"; in your styles.
maz
Poster: Ruth
Dated: Monday February 23 2004 - 22:32:44 GMT
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