IE6 image is centered on page

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

IE6 image is centered on page

Post by Ambush Commander »

View http://www.jpstevens.org/wiki/J.P._Stevens_High_School in Internet Explorer 6.

Note how the logo is centered on the page.

Any ideas how to fix?
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

It stared fine, then jumped to the middle for me (indicating a possible javascript fix/hack), I looked at the source and saw:

Code: Select all

<!--[if lt IE 7]><script type="text/javascript" src="/w/skins/common/IEFixes.js"></script>
It seems to be the usual IE PNG transparency hack... I'd have to look at the js source to determine that the heck is going on... the easy fix would be to use a jpg or gif and remove that js file.... (assuming that's all it's used for)
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Fixed it by absolutely positioning the div. Hmm...
Post Reply