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

horizontal menu width


Poster: bdavids3
Dated: Wednesday November 26 2003 - 18:16:56 GMT

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

thanks,

brian[/b]


Poster: kevin3442
Dated: Wednesday November 26 2003 - 19:35:28 GMT

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