Board Logo

Why aren't menu sizes correct in Gecko browsers?
demonseed - 2/11/2004 at 09:18 AM

I'm really puzzled. The menu's width is set to 140 in the MENU_POS array, however, in Mozilla and Netscape the menu's width is 148. How can this be?

I'd prefer not to have separate JS's loaded for each browser (due to maintenance reasons) so is there a way to easily change just this one property using JS at the top of the calling page if Mozilla is detected?

I've tried to use array.splice, concat etc but it doesn't work.

Any help would be greatly appreciated.

Thanks

:: demonseed ::


tigra - 2/14/2004 at 06:59 AM

The problem is probably caused by CSS settings for margin/padding. Different browsers may render the same settings in different ways. Try playing with different values. If nothing helps then try formatting the items using very generic inner HTML.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/