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

"Itemwidth" variable still broken in RC15

Poster: Marc-Andre.Roberge __at__ mus.ul
Dated: Monday October 6 2003 - 20:02:09 BST

I apologize for coming back again on this topic, but the trick consisting in adding "itemwidth=100%" inside a supplementary (empty) main menu item to cause the menu bar to extend to the right of the screen, which stopped working after RC11 or maybe RC10, still gives no result; the menu bar stops at the end of the last real menu entry.


On 1 October jgillett <> said that this bug was one of two items left to fix before going final. I sincerely hope that the final release will really fix it. Not being a graphics deisgner, I would really prefer not having to change the entire design of my site just to have a workaround or to be forced to revert forever to RC9. Thanks very much in advance.

Poster: John
Dated: Monday October 6 2003 - 22:00:55 BST

As Andy mentioned in another post, most (if not all) the changes so far in RC15 were for NS display problems. itemwidth was promised for final release (just to be picky).

Be patient - he's really bustin' butt over there to get everything done right.

Poster: Andy
Dated: Tuesday October 7 2003 - 8:08:35 BST

itemwidth and 100% width are 2 separate issues.

Itemwidth does appear to be working as expected and is only for specifying the width of a single menu item.

100% width is now based on a 100% width table with the menu embeded inside, as a relative object.

A sample of this will be completed as soon as we can

-- Andy

Poster: kevin3442
Dated: Tuesday October 7 2003 - 9:45:35 BST

A couple of comments if I may:

(1) It's late, so maybe I missed it, but I didn't catch a particular browser you are concerned about? is there one? I ask because I notice that the "trick" you mention does work in RC15 with IE6, NS7, and Opera 7 in Win2k (haven't taken the time to go any further).

(2) That trick will not work in some browsers (e.g., Opera 7) if you simply use text=; ... you should put a nonbreaking space in, like this: text=&nbsp;;

(3) Unfortunately, we all run a risk any time we rely on a "trick" of code to force a system to do something it wasn't designed to do. As Andy mentioned, itemwidth is meant specifically for items. If it can be used for some other purpose, that's great, but it shouldn't necessarily be relied upon. If that method seems to be failing, then perhaps there are other ways to achieve the effect you want. Having looked briefly at your site, I can think of one possible solution right away that might work well. At the position where you want your menu, create a table with one cell set to 100% width, left aligned, with the same background color as your menu. Get rid of the 100% menu item, and place your main menu in the table cell (leaving the rest in your .js file). Seems to me that ought to give you the effect you're looking for.

Hope that helps,


Poster: Maz
Dated: Tuesday October 7 2003 - 15:07:34 BST

Hi Keven,

That's about it, my dummy browser says 100% of 1 space is 1 space.
The table underneath is 100% and menu right.


Poster: Marc-Andre.Roberge __at__ mus.ul
Dated: Tuesday October 7 2003 - 15:35:48 BST

To my greatest shame, I must admit that the changes to my files that were required by the disappearance some time ago of the "scriptpath" variable contained mistakes (i.e., one top directory level missing in the relative references to the location of the scripts). This meant that, even though I was using the most recent versions of the menu, my pages were looking in another directory for the scripts. I apologize for having raised the issue of the "itemwidth=100%" variable with such persistence. Using the following line as the last main menu item actually does what I am looking for, namely, extend the menu bar to the right edge of the screen:


Poster: John
Dated: Tuesday October 7 2003 - 16:08:30 BST

Not to worry. Everybody is entitled to a burp (or more, in my case!). You learned, you got it working, and you also took the time to post so others could learn. Can't ask any more... :D