Menu width to take 100% of its container

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
myalo
Advanced
Advanced
Posts: 23
Joined: Mon Aug 28, 2006 6:54 pm
Contact:

Menu width to take 100% of its container

Post by myalo »

Hi
I am trying to make a menu take 100% the width of its container, in this case a div.
Please see http://www.ajula.edu/temp/tests/menu.htm
As you can see I tried

Code: Select all

menuwidth="100%"; 
itemwidth="100%";
The rawcss setting I got from on of the Milonic samples.
I do not understand how it rawcss affects the width of the menu. If I comment out the rawcss, it does not fill the container at all. With any other value I cannot predict how wide the menu will be.
Bottom line I am looking for a way for a menu to spread and take the full width of it container and make the items spread evenly to fill it
Also where can I find examples and good explanation on how rawcss works?
Thanks
Moshe
Moshe Yalovsky
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Menu width to take 100% of its container

Post by Ruth »

Hi,

There seems to be a bug. I have reported it to Milonic. In the meantime, you can fix it by adding

Code: Select all

separatorcolor='transparent';
separatorsize=1;
I'm not sure if that transparent on separatorcolor works in all browsers, so it might be better for you to set the color as the bgcolor of that div. Again, this is a workaround until Milonic fixes the issue. The container is going 100%, it is the item that is not. Just for your information.

Ruth
myalo
Advanced
Advanced
Posts: 23
Joined: Mon Aug 28, 2006 6:54 pm
Contact:

Re: Menu width to take 100% of its container

Post by myalo »

Thanks. It worked. I did have to put a background for the div
How will know that this issue is fixed?
Thanks
Moshe
Moshe Yalovsky
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Menu width to take 100% of its container

Post by Ruth »

Hi,

You can go to this topic and mark it to watch this topic or subscribe or whatever it's called viewforum.php?f=18

Or this one, also viewtopic.php?f=10&t=3108

Personally, I have both of them set. This will give you a forum notification whenever there is an upgrade on the menu.

Ruth
Post Reply