Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:05

Problem with centering and browser scrollbar in Firefox


Poster: MikeS
Dated: Tuesday November 2 2004 - 18:54:25 GMT

I'm having a problem with centering my menu in Firefox. There are two things that I'm having trouble with:

1. My menu is centered fine (usually, see #2) when the page length fits on the screen. However, if the page is too long, and the broswer has to have a vertical scrollbar, the centering becomes shifted. To test this, go to the menu on http://www.zoo.utoronto.ca/able/new/ and it should look fine, but make your broswer window very 'short' so that it needs a vertical scroll bar, and you can see the menu is shifted and is no longer centered.

2. Sometimes when I resize the width of my browser (only in Firefox), the centering is off by 1 pixel.

http://www.zoo.utoronto.ca/able/new/

Everything works fine in IE.

Any suggestions?


Poster: kevin3442
Dated: Wednesday November 3 2004 - 2:28:21 GMT

Hi Mike,

What version of Firefox? I have 1.0 preview release. I see the problem (#1) with centering when there's a vertical scrollbar... the menu shifts over a few pixels to the right of center.

I don't get the 1px offset problem (#2) when I resize the width.

What can be done? That's a tough one. The best thing would be for Milonic to modify the centering code for Firefox. But since it's still a beta product, I don't know if they'll be too eager to do that just yet... you go and "fix" something only to find that firefox has changed again in the next release. You might also be able to apply a fix yourself, sniffing for firefox then adjusting the menu's position onresize.

Kevin


Poster: MikeS
Dated: Wednesday November 3 2004 - 16:02:26 GMT

I'm using Version 1.0.

The thing is, with some different skins, the problem isn't there, but with the default skin (which probably 90% of the Firefox users have), it's there.

Coding it myself might be my only alternative for now.

As a sidenote.. things work fine in Netscape 7.1 but not fine in Mozilla 1.7.1.


Poster: MikeS
Dated: Friday November 5 2004 - 19:52:21 GMT

Any other advice?


Poster: MikeS
Dated: Friday November 12 2004 - 16:42:06 GMT

Still doesn't work with Firefox 1.0.