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

Upgrade to 5.736 messes up item width


Poster: keithyoung89
Dated: Friday December 2 2005 - 12:10:12 GMT

I have just installed the upgrade from v5.66 to 5.736 and had to revert to the old version as the menu formatting is no good with the new release.
The menu uses 'menuwidth="760"' and in v5.66 the menu assumes this width with all items evenly spaced out. With v5.736, although the menu is the correct width, the menu items are bunched up to the left-hand side with a blank area in the menu on the right.

I tried the 'overallwidth="760"' parameter which makes the menu items space OK but the menu reduces from 760px.

For how the menu looks with v5.66 see http://www.glengolfclub.co.uk
For how it looks with v 5.736 click http://www.youngcc.co.uk/glen/

Any suggestions please?


Poster: Andy
Dated: Monday December 5 2005 - 13:18:18 GMT

Hi,

There were some changes made to itemwidths and the new version will need a few minor changes.

However, the new "Pre Release" version of the menu is the best version to use. Or you can wait until it is officially released.

You then need to add the following to your main menu definition in your menu_data.js file:

itemwidth="100%"

The reason for us doing the above is to give more control over 100% width itemwidths.

Hope this helps,
Andy

Hi Andy


Poster: keithyoung89
Dated: Monday December 5 2005 - 15:46:12 GMT

Thanks for the response.

I assumed the version I was downloading was the fully tested version as I was prompted to make the upgrade via a Milonic email.

Applying the itemwidth statement to the style properties section of the menu_data.js file I get an awful result: all items are as wide as the main menu - and wider! I'm not sure if they are rendering to 100% of the menu width (760px) or the screen.

In addition, the main menu as apportioned a huge width to the first item (Home) and then tried to squeeze the other items into far too small a width.

If I place the statement in the menu properties section of the parameter file I just get the latter error with 'drop-down' items being a sensible width: see http://www.youngcc.co.uk/glen

Which section is it intended that the 'itemwidth="100%";' statement should be placed in?

If i want to try the pre-release version how do I get it or. preferably, when will the final release be available and how will I know?

Thanks, Keith


Poster: Andy
Dated: Wednesday December 7 2005 - 10:34:36 GMT

Hi,

Did you download the Pre Release version - it's the only version that will work with itemwidth="100%"; added to the mainmenu definition.

You can get it from http://www.milonic.com/menuvinfo.php

Cheers,
Andy


Poster: John
Dated: Wednesday December 7 2005 - 14:42:17 GMT

You're running 5.736, which is not the pre-release Andy mentions.

Go to the page he indicated and look just below the first item to 5.737 - Pre-release.


Poster: keithyoung89
Dated: Wednesday December 7 2005 - 18:11:53 GMT

I have now downloaded the 5.737 pre-release and installed here as instructed: http://www.youngcc.co.uk/glen

Two items have spilled on to two lines thus doubling the depth of the menu. It should look like this: http://www.glengolfclub.co.uk

Can this be resolved?

Thanks. Keith.

I'd appreciate a response


Poster: keithyoung89
Dated: Friday December 9 2005 - 21:45:31 GMT

I really would appreciate an explanation as to why my menu is misbehaving. Thanks


Poster: Ruth
Dated: Sunday December 11 2005 - 1:43:59 GMT

Hi Keith,

The itemwidth=100% is a new property which allows for a shortcut to make the menu items span proportionally when using menuwidth="100%" to make the items within the menu box expand to fill the box. It also seems to do that with a fixed width menu based on my tests.

Since you have the menuwidth set at 760 px which means it will always be 760px no matter what the resolution, I would suggest you use fixed width on the items setting it as itemwidth=95; rather than 100%.

As to the wrapping, in my browser it does not, but that's because I have IE with font set to smaller, and do not set accessiblity to override the author's styles. In Netscape it does wrap because Netscape is, by default, set to 100% no matter what the author has. You have fontsize in the menu set to 60%, so in IE that is what you get and the items with multiple words do not wrap, but in Netscape I get the 100% default setting and the multiple words items wrap to keep the proportional spacing. You can prevent that by placing a non-breaking line space between the words.
Code:
ABOUT US


If you want it to look the same in all browsers as to font, the only way to do that is to use fixed images.

Since I'm not a programmer, nor do I work for Milonic, I can only give you information based on my experiments, all of this is based on the experiments I did using your page and your menu_data file with version 5.737

EDITED: 12/11/05

Ruth

Thanks, Ruth


Poster: keithyoung89
Dated: Sunday December 11 2005 - 12:33:14 GMT

Ruth, many thanks for the time and trouble you have gone to with this. I will indeed try your suggestions and see how things work out.

I use IE myself, incidentally - you seem to suggest that perhaps I was using something else, unless I misunderstood what you were saying.

I'll report back as to how things go.

Thanks again,

Keith


Poster: Ruth
Dated: Sunday December 11 2005 - 16:18:49 GMT

Hi,

Sorry, you know how it is when you're writing something, you kind of edit as you write. Well, my editing took out the part about my using IE with the font size set at smaller and setting it higher did make it wrap :oops: I also tend to go into more detailed explanations especially with things like font sizes because many don't know about the issue with some browsers by default being set to override the author's font set up.

As a matter of fact, if I didn't know better I'd think I wrote that after a couple, well more than a couple of beers :lol: I left out a lot of words, which I'm about to fix!

Ruth

No worries!


Poster: keithyoung89
Dated: Sunday December 11 2005 - 16:59:10 GMT

Don't worry! I'll not get time to experiment until early next week. I didn't know about the font thing so I've learned something!

Good of you to help.

Keith