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:40

Menu out of Alignment


Poster: ninates007
Dated: Wednesday June 22 2005 - 3:36:09 BST

Hi there,
Last week i had an issue whereby the words MILONIC were appearing on the top and left menu bars on our website. I learned that this was due to an evaulation copy of MILONIC menu downloaded then a license purchased so to resolve this i logged into the Milonic site and downloaded the new menu. Since i have done this, my drop down menus on the top and left hand side are out of alignment.

The only files which i replaced were milonic_src.js, mmenudom.js, mmenuns4.js. I did not replace our menu_data.js file.

How can i fix this problem. All the text is correct, it's just the menu out of alignment. Please see http://www.selectfunds.com.au and click on the Legal or Latest Prices Menu to see my prob.

Many thanks,
Nina


Poster: John
Dated: Wednesday June 22 2005 - 15:09:27 BST

Remove the top= and left= parameters from those two sub-menu definitions. See http://www.west.asu.edu/sa/testsite/.

Also note that under Firefox your top menu does not line up with the grey background bar (it's too low). IE appears OK.


Poster: ninates007
Dated: Thursday June 23 2005 - 0:46:49 BST

Hi John,

I'm not sure which parameters from which files i am supposed edit? Do i edit the menu_data.js file or the mmenudom.js files? Anyhow from your testing this doesn't fix my problem. The menu alignment is still not correct on the top and left menus. The drop down menu for unit prices and legal are still not exactly aligned. Unit prices drop down menu should only be displayed to the end of the top menu bar and the 'Legal' drop down menu should be exactly aligned (it's just not wide enough at the moment).

The other issue is the left hand menu bars. If you click 'Products' - 'Select Portfolios'- 'Select Defensive' the white underline from 'Select Portfolios' to 'Select Defensive' should run in a straight line. How can i send you a print screen of what it should look like so you see what i mean??

Thanks for your help,

Nina


Poster: John
Dated: Thursday June 23 2005 - 15:47:38 BST

ninates007 wrote:
I'm not sure which parameters from which files i am supposed edit? Do i edit the menu_data.js file or the mmenudom.js files?

NEVER edit anything in the menu code files!

My comment to you was...
John wrote:
Remove the top= and left= parameters from those two sub-menu definitions. See http://www.west.asu.edu/sa/testsite/.

I thought that was pretty direct. If you look at the site I posted you'll see where I have commented out those lines (specifically did not remove them so you could see the changes).
ninates007 wrote:
Anyhow from your testing this doesn't fix my problem. The menu alignment is still not correct on the top and left menus. The drop down menu for unit prices and legal are still not exactly aligned. Unit prices drop down menu should only be displayed to the end of the top menu bar and the 'Legal' drop down menu should be exactly aligned (it's just not wide enough at the moment).

Looking at it here the top alignment has definitely changed, and the subs you mentioned are now in line with the parents, so I'm really confused as to what you're seeing. :?
ninates007 wrote:
The other issue is the left hand menu bars. If you click 'Products' - 'Select Portfolios'- 'Select Defensive' the white underline from 'Select Portfolios' to 'Select Defensive' should run in a straight line.

Since you didn't give any details of this problem in your initial message I didn't know what the problem was. Use _subOffsetTop= and _subOffsetLeft= in your _data file to change the position of the sub menus. I have done this in my demo so the line under Corporate is aligned with the line under Corporate Profile (if I understand what you're after). Note that they all will not align because of the difference in the menu item heights between the two menus.
ninates007 wrote:
How can i send you a print screen of what it should look like so you see what i mean??

Use the Img tag on the posting page with an absolute link to the file(s) on your server.

My testing was done in Firefox, so it might not look right in IE, but the procedures are the same.


Poster: ninates007
Dated: Friday June 24 2005 - 4:34:51 BST

Hi John,

thanks for your help. I finally worked it out. I don't do much website work (just uploading of general data content) so this was a toughy for me. (I only just realised today that you uploaded the menu_data file on to your server for me to download and look at). Thanks for your help.

i edited the following:
Line 8: _SubOffsetTop=11
Line 9: _SubOffsetLeft=3
Line 80: top=15
Line 81: left=142
Line 116: itemwidth=101

All is good. thanks again :P