Forum Moderators: open

Message Too Old, No Replies

DHTML menu positions change on window resize

I would appreciate if you could help.

         

kemalemin

5:54 am on Mar 16, 2002 (gmt 0)



My client wanted a drop down menu on their web site. Basically, i have a table with the width 630px. and this table is centered in the document. When i maximise or decrease the size of the browser, the drop down menus goes out of order. They are still in the right coordinates but as the page size changes they are not in the right place. I don't know anything about javascript so I used FireWorks' own tools. Please help..

tedster

6:33 am on Mar 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums, kemalemin. That's a strange one -- I hope we can help you fix it.

My first thought is to include a script that forces a complete reload of the page when the window is resized. Are you seeing this behavior in lots of browsers, or just one in particular? If it's only in one, it would be a shame to reload the page in all browsers.

kemalemin

8:08 am on Mar 16, 2002 (gmt 0)



Thank you for your reply. The situation is the same in all browsers (tested on IE6, NC6.2 and Opera 6). As I already mentioned, I have no idea about client side scripting. So I wouldn't know how to reload the page according to the screen width.

tedster

8:48 am on Mar 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Add this code to the BODY tag:

<BODY onResize="location.reload()">

kemalemin

2:15 pm on Mar 17, 2002 (gmt 0)



It didn't work. But thank you very much for trying to help. We've decided to left align the page itself so the coordinates will still be inline and won't cause any problems. you can see what my problem was from www.northcyprusonline.com/fraser

When you mouseover on the navigation buttons on top, you'll see what i mean. Try doing it with different resolutions.

Thanks very much

Kemal EMIN

tedster

9:17 am on Mar 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A similar topic came up on another thread. If you are still in the market for a centered layout, check out this thread:

[webmasterworld.com...]