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

Menu is positioned differently on different resolutions...


Poster: mps232
Dated: Thursday December 29 2005 - 5:23:34 GMT

Good evening all!

This may be a newb question, but I have a menu placed in a table centered on a page as taught by the Milonic help site itself. The menu fits perfectly in the table when I design and view on my specific browser and resolution.

However, when I goto the site from a different browser/resolution the menu may either be too short (horizontally) to fill up the table as it did before or too long (horizontally) and go past the table positioning.

Is there a way to make it fit the width of the table it is in so it can adjust to different settings?
Thanks!

menuwidth property


Poster: Migru
Dated: Thursday December 29 2005 - 9:37:34 GMT

Hi

When the menu is placed in a table, which is e.g. 600 px wide and you specify menuwidth="100%"; then the menu "fills" the table up to its margin.
In addition there is something to consider:

I recommend to specify an individual itemwidth (item property) for each item. The total should not exceed the menuwidth (and width of the table).
Example:
Code:
with(milonic=new menuname("mainmenu0")){
style=style1;
position="relative";
alwaysvisible=1;
orientation="horizontal";
menuwidth="100%";
aI("text=Home;showmenu=Home;itemwidth=100px;separatorsize=1;");
.
.
drawMenus();


Unfortunately neither
http://www.milonic.com/menusample9.php
nor
http://www.milonic.com/tablemenu.php
or
http://support.milonic.com/beginners/ta ... /index.htm

actually comment on this, I recommend it should be noted somewhere on these pages.

Hope this helps

Michael


Poster: mps232
Dated: Thursday December 29 2005 - 16:39:09 GMT

Thanks Michael!
That works great for all differnet Internet Explorer browsers and resolutions. However it is creating a problem with Mozilla Firefox.

It fills the lenght to 100% of the table for IE, and for Mozilla it then begins at the tables left as ususal and extends right all the way to the end of the entire page - not the table?

Looks like we are close, any ideas on this?

menu width


Poster: Migru
Dated: Thursday December 29 2005 - 16:48:09 GMT

Hi

well, should work with FF too (I am using 4 menus on one page, do not have problems with both browsers! But I remember, once had the same problem as you have, do not really remember, how I solved that !)

CanĀ“t you provide a url, so I can see what it is ?

There must be something different, not only the "width".

Michael


Poster: Ruth
Dated: Thursday December 29 2005 - 19:01:31 GMT

We do really need a url or all your code for page, menu and any css if you can't post the page for us.

There could be any number of reasons why this is happening, many of which have nothing to do with the menu.

Ruth

Syntax error


Poster: Migru
Dated: Friday December 30 2005 - 0:16:03 GMT

Hi to everyone who is following

There was a syntax error which caused with FF (not so in IE) that the menuwidth set to 100% in a table was extended to the end of the page, not the table.

Hi MPS
there is another syntax error in the html code,

look at <NOSCRIPT> and the </NOSCRIPT> tags !

Michael


Poster: mps232
Dated: Saturday December 31 2005 - 0:17:54 GMT

Wanted to send thanks to Michael (migru) who assisted me via email.
More specifically, aside from syntax we addressed centering the screen position and setting actual item widths for each menu item.

Thanks again for the great support.