Click to See Complete Forum and Search --> : Centering javascript navbar is different in IE than in Opera and Mozilla
Rattify
06-13-2006, 09:37 AM
I'm trying to change a javascript menu from absolute to relative location (want it centered). For some reason in IE that displays fine, but in Opera and Mozilla it displays about 5 pixels to the right of center. Can anyone think of a reason this might be off the top of their head?
phpnovice
06-13-2006, 09:45 AM
Truly five pixels? The difference is hardly visible to the naked eye -- especially on today's high-resolution monitors. What are you doing? ...viewing it in 600x480 (EGA) mode or less? Hmmm... Trivia question... What was the resolution used for CGA mode? Anyone remember that far back? :D
Rattify
06-13-2006, 10:05 AM
Well, actually it's 8 pixels; I'm veiwing it in 1024x768 and it's quite visible. The thing is, I don't actually know javascript, but my boss wants me to try and figure it out anyway--with predictably bad results. There seems to be a var StartLeft=0; attribute, when I set it to 0 it shows centered when the var MenuCentered='center'; on IE but to center it in Opera and Mozilla I have to set StartLeft=-8; and then it's too far to the left on IE.