menus and divs.

They have: 7 posts

Joined: Apr 2006

Confused I have recently built a rollover menu using DHTML (html+javascript+css), but it uses absolute positions, such as 35 pixels down, and the such.

Is it possible to find the height of an object, and/or the distance from the top+left the object is, so I can make the menu more flexible and usable?

That would be great! Laughing out loud

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Unless everything on your page is aligned absolutely, it won't work properly, because in different browsers and settings, everything is in a different position (pixel wise). Make sense?

They have: 7 posts

Joined: Apr 2006

Quote: Unless everything on your page is aligned absolutely, it won't work properly

So for every copy of this that I put into the web page, I have to adjust the script so it places the menu in the correct place? That is annoying.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.