Change the Width

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Agustin
Beginner
Beginner
Posts: 3
Joined: Tue Feb 28, 2006 8:02 pm
Contact:

Change the Width

Post by Agustin »

Hi.. I need to change the menu's width to be the same size of the table.
Ive looked for older posts, in the guides and begginers forum but i couldnt find it.
I found in http://milonic.com/menuproperties.php the menuwidth, which hasnt explanation, but i tried it but i couldnt make it work. What im doing wrong?
Thanks..
Agustin

pd. a suggestion for begginers guide = a spanish guide :P
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

try

Code: Select all

menuwidth="100%";
Sample

Code: Select all

with(milonic=new menuname("mainmenu")){
style=style1;
position="relative";
alwaysvisible=1;
orientation="horizontal";
menuwidth="100%";
aI("...........
:
:
Michael
Agustin
Beginner
Beginner
Posts: 3
Joined: Tue Feb 28, 2006 8:02 pm
Contact:

Post by Agustin »

Thanks Michael.. But is it possible to make the menu stretches to fill the whole table?
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

but exactly this should do it !

If this is not the case, then something else in your html or js setup should be
causing that. Can´t you provide a url ?
Do you have an offbgcolor set ? Did you try setting the menuwidth to the width of the table for instance menuwidth="400"; (If your table is 400 px wide). etc. etc. It is really better you provide a url, to get an optimum of help. The menuwidth of course will not spread the items accordingly ! Is the menu properly embedded in the table ? There are some more questions which could be answered only, when a url is provided !

Michael
Agustin
Beginner
Beginner
Posts: 3
Joined: Tue Feb 28, 2006 8:02 pm
Contact:

Post by Agustin »

Solved! Thanks a lot Michael!
Post Reply