positioning relative to a graphic

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Silverion
Advanced
Advanced
Posts: 13
Joined: Sun Aug 31, 2003 8:15 pm

positioning relative to a graphic

Post by Silverion »

i am having problems positioning the menu on top of a graphic. When the screen is resized, the menu shifts its horizontal position, and it needs to stay fixed.

One solution would be to position the menu centered horizontally on the page. How would you center it horizontally? Or is there a better way to put the menu on top of a graphic?

::NOTE: url to the site is http://www.digitaldistillation.tk ::
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Looking at it now in XP Pro/IE6, and the menu does not move when the window is resized. Is that not what you want?
John
Silverion
Advanced
Advanced
Posts: 13
Joined: Sun Aug 31, 2003 8:15 pm

Post by Silverion »

i was just editing it a bit. refresh your window now. it should be a horizontal bar.

now i am wondering weither ie6 handles something differently than ie5.6
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Silverion wrote:i was just editing it a bit. refresh your window now. it should be a horizontal bar.
It is (and was before). Now the graphic moves on resize and the menu still stays in place.
Silverion wrote:now i am wondering weither ie6 handles something differently than ie5.6
Probably, knowing M$...
John
Silverion
Advanced
Advanced
Posts: 13
Joined: Sun Aug 31, 2003 8:15 pm

Post by Silverion »

ok, its kind of wierd. i was trying to mess with it a lil to see if it would work, and apparently one of the settings I did made it work, but on my browser it did something wierd where the bottom border of the menu would grow by one pixel everytime it was resized.

can you give me the CORRECT code for the browsers to make the menu stay at its top offset, but to be centered?

::NOTE: menu_data.js is here:
http://digital.dyns.net/menu_data.js

edit: yes, the graphic WILL move on resize, but thats why the menu needs to be centered because if it is centered, it will always fall on the right place
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Code: Select all

target=contentwindow;
Typically not what we're after there. target=_new;, target=_top;, etc.

As for positioning, see http://milonic.com/menusample.php?sampleid=23. Check the other samples and especially the Quick Reference guides while you're there.
John
Post Reply