horizontal menu width

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
bdavids3
Beginner
Beginner
Posts: 1
Joined: Wed Nov 26, 2003 7:14 pm

horizontal menu width

Post by bdavids3 »

is there a way to make the menu span a certain width, regardless of how short the menu actually is?

thanks,

brian[/b]
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Brian,

There is a menu property called menuwidth that should do the trick. You can set any numeric value (pixels) that you want, but if you set one that is too narrow to accomodate the entire menu, then the system will automatically adjust to the minimum width necessary to display the entire menu (including wrapping the text for the menu items). I would assume that the width you specify will be somewhat larger than what wuold be necessary to accomodate the menu. For example, suppose that your menu was normally 600px wide. The following

Code: Select all

menuwidth=800;
menualign="left";
would make the menu 800px wide, adding more space to the right side. If you set menualin="center", then the additional space would be split equally between left and right sides. With menualign="right" the additional space would be added to the left side.

You can also set menuwidth="100%"; to have the system automatically add enough extra space to that the menu spans the entire width of the browser window, automatically adjusting as the user resizes the window.

Hope that helps,

Kevin
Post Reply