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

Menu no longer centered when I change resolutions


Poster: rudy
Dated: Friday January 16 2004 - 20:21:42 GMT

When I'm set at 800x640 the menu is center on the page correctly but if I change to a higher resolution the menu is no longer centered.

I know some on this forum posted a table script that would solve this, but I have searched the postings and can't seem to find it.


Poster: Ruth
Dated: Friday January 16 2004 - 21:34:13 GMT

A link for the page would be helpful to let people see the coding. As for putting it in a table http://www.milonic.com/menusample.php?sampleid=9 this is for putting the menu in a table. You might try doing a forum search on tables and see if there's any more info.

Ruth


Poster: kevin3442
Dated: Friday January 16 2004 - 22:50:52 GMT

Hi Rudy,

If all you want to do is center your menu, you don't need to put it in a table (I would recommend that you not embed it in a table unless absolutely necessary). To center the menu, set the menu's top property to the top position you want, remove the left property altogether, and set screenposition="center"; like so:
Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
screenposition="center";
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
.
.
.
}

Hope that helps,

Kevin

Thanks Kevin


Poster: rudy
Dated: Friday January 16 2004 - 23:34:01 GMT

Thanks alot Kevin

Using the "screenposition="center"; did the trick. Now no matter what screen resolution a visitors monitor is set at my menu will always be centered on the page.

Tried to do this putting it in a table, but that didn't work.


Thanks again :D


Poster: John
Dated: Saturday January 17 2004 - 5:40:34 GMT

Rudy, you've got some pretty basic questions posted all over the place, which is fine - we're here to help. However, most of what you have asked can be found by doing some reading. See http://www.milonic.com/forum/viewtopic.php?t=2981.