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

Please help


Poster: cdnieto
Dated: Thursday September 16 2004 - 14:58:22 BST

Hello, first sorry about my english
i have a problem, i had put a milonic menu the sample 20. Well if i see in resolutions like 800x640 it´s ok
but if the resolution is 1024 then the menus apears on the left.
You can see that in http://www.cdnieto.com/nacional2.htm
you can see this page in 800 and in 1024 px and you can see the problem what can i do?
i also try tu use the cell exanple that is in the web but it dosen´t work
please help me
thank you very much


Poster: fredlongworthhighschool
Dated: Thursday September 16 2004 - 15:13:06 BST

You need to look at relative positioning, see sample 9.

It's because you have set your main page to be centred. You don't notice this in 800x600 because it fits the page correctly, but in 1024x768 it looks nicer to have it spaced equally.

http://www.milonic.com/menusample9.php


Poster: kevin3442
Dated: Friday September 17 2004 - 0:41:29 BST

Hi,
fredlongworthhighschool wrote:
...It's because you have set your main page to be centred....

Andy is correct... it's because the content on the page is centered, but the main menu is absolutely positioned. It will always be at the same left and top coordinates the way you have it. Andy's suggestion of relative positioning (table bound menu) is also a good one. There is also another alternative.

THe menu system lets you position the menu at an offset from the browser window's center. To do so in your case would only involve a few simple changes. In your menu_datan.js file, change the top of the "Main Menu" definition from:
Code:
with(milonic=new menuname("Main Menu")){
style=background;

top=125;
left=5;
alwaysvisible=1;
...
aI(...)
}

to
Code:
with(milonic=new menuname("Main Menu")){
style=background;
screenposition="center";
top=125;
left="offset=-309";
alwaysvisible=1;
...
aI(...)
}

You can change the value of the offset to fine tune the position. Now, your menu should remain where you intended it to be.

Hope that helps,

Kevin


Poster: cdnieto
Dated: Friday September 17 2004 - 16:30:26 BST

thank you, thank you very much to kevin and andy.
Finally i choose the second option, kevin´s option it was more easy :)

Thank you a lot and sorry again about my english


Poster: fredlongworthhighschool
Dated: Monday September 20 2004 - 13:36:26 BST

I didn't know about the offset from centre! That will help making my new site easier!

Nice one Kevin!