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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:31

Setting menu Width AND Height on the SAME line???


Poster: Maze
Dated: Thursday July 18 2002 - 15:21:33 BST

In the "menu_array.js" file, regarding this line:

, // Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)

How do you set both width and height on the same line?

If I wanted to set 100% width and 20px high on this line, how would I do it?

Would it be: 100; 20 or 100, 20 ??

Nothing I try seems to work. (I'm trying to glue the menu into a table cell)

Thanks to anyone who can answer this question! :D

How I did it!


Poster: The Hat
Dated: Friday July 19 2002 - 14:47:04 BST

To get 100% and pixel size to match the menu, I just entered 1, I tried all the other combinations I could think of including , : ; "" & ,but none of them seemed to work.


Poster: sbueffel
Dated: Friday July 19 2002 - 17:40:56 BST

What Andy means for that value is if you want to have the menu be 100% of the browser's width, put a value there. The value will be the height (in pixels) of the background color that the menu extends to the top and bottom of the menu height. Follow that? If you put a 1 there (the most common), the menu adds a background bar that extends to the full width of the browser (minus margin settings) plus it adds 1 pixel to the top and bottom of the menu. Set the value to 50 and you will see what I mean.