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

Menu is always at the top


Poster: firstjohnsmith
Dated: Thursday July 21 2005 - 18:04:16 BST

Is there a way to push the menu down a set number of pixels and then center it?


Poster: slackbladder
Dated: Thursday July 21 2005 - 19:14:42 BST

For 'pushing the menu down' and centering it try:

top=80; adjust to suit

screenposition="center";

in your item properties.

Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=200;
screenposition="center";
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=index.php");
}


Poster: firstjohnsmith
Dated: Friday July 22 2005 - 17:48:59 BST

The top=80 worked, but the screenposition doesn't seem to work. The left works just fine, but it gets distorted if someone has a favorites or history window open.

The site is at

http://www.little-india-in-lake-charles.org/genetic/newindextest2.htm


Poster: kevin3442
Dated: Friday July 22 2005 - 19:33:14 BST

You still have the left property defined (left=260) in your Main Menu, which will override the screenposition property. screenposition="center" should work if you remove the left setting (i.e., remove left=260 from your Main Menu definition).

Cheers,

Kevin


Poster: firstjohnsmith
Dated: Friday July 22 2005 - 19:35:45 BST

thanks.