Menu is positioned differently on different resolutions...

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mps232
Beginner
Beginner
Posts: 3
Joined: Thu Dec 29, 2005 6:15 am

Menu is positioned differently on different resolutions...

Post by mps232 »

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!
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

menuwidth property

Post by Migru »

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

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://milonic.com/menusample9.php
nor
http://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
mps232
Beginner
Beginner
Posts: 3
Joined: Thu Dec 29, 2005 6:15 am

Post by mps232 »

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?
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

menu width

Post by Migru »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Syntax error

Post by Migru »

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
mps232
Beginner
Beginner
Posts: 3
Joined: Thu Dec 29, 2005 6:15 am

Post by mps232 »

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.
Post Reply