Menu is always at the top

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
firstjohnsmith
Beginner
Beginner
Posts: 3
Joined: Thu Jul 21, 2005 5:59 pm

Menu is always at the top

Post by firstjohnsmith »

Is there a way to push the menu down a set number of pixels and then center it?
slackbladder
Super Advanced
Super Advanced
Posts: 72
Joined: Fri Jul 01, 2005 3:04 pm

Post by slackbladder »

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

top=80; adjust to suit

screenposition="center";

in your item properties.

Code: Select all

with(milonic=new menuname("Main Menu")){ 
style=menuStyle; 
top=200; 
screenposition="center"; 
alwaysvisible=1; 
orientation="horizontal"; 
aI("text=Home;url=index.php"); 
} 
firstjohnsmith
Beginner
Beginner
Posts: 3
Joined: Thu Jul 21, 2005 5:59 pm

Post by firstjohnsmith »

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 ... xtest2.htm
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
firstjohnsmith
Beginner
Beginner
Posts: 3
Joined: Thu Jul 21, 2005 5:59 pm

Post by firstjohnsmith »

thanks.
Post Reply