Fixing the position of menu with centred page

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
craig2004
Beginner
Beginner
Posts: 2
Joined: Thu May 06, 2004 9:28 am

Fixing the position of menu with centred page

Post by craig2004 »

I'm having problems with a centred web page - different resolutions move the sub-menu around. Offseting from the top left of the screen doesn't seem to be the solution.

See http://www.printportfolio.co.uk
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You have a top and left position set for that menu, so no matter what your resolution it will always open in that top and left position. That's why when you change resolution it seems to open in the wrong place. To fix it
get rid of the left position, and put in

Code: Select all

top=178;
screenposition="center";
left="offset=150";


As Kevin mentioned, you need an offset. That 150 should be about right.

Ruth
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Attaching the menu to the image would work great here.

See the same at http://milonic.com/menusample24.php to see how it works. All you need to do is give the images an id and a name and then add this name to the popup function as a second parameter.

Hope this helps
Andy
craig2004
Beginner
Beginner
Posts: 2
Joined: Thu May 06, 2004 9:28 am

Post by craig2004 »

Attaching the menu to an image solved the problem. thanks for your help.
Post Reply