View Full Version : IE6 Centering Problem
rmagnes
01-22-2010, 09:43 AM
I have this site centered in every browser except IE6 and I can't figure out what the issue is. Except for a IE7 hack, everything is W3 compliant. Any thoughts? Help!
Check out the site I am talking about here:
http://current-post.com/refractive/index.html
molendijk
01-22-2010, 03:02 PM
You can force an element with ID="bla" to center itself by doing this (assuming that it has, for instance, width:400px; height: 400px):
<style type="text/css">
#bla {position: absolute; top:50%; left: 50%; width: 400px; height: 400px; margin-left: -200px; margin-top: -200px};
</style>
(Only apply this when there's a problem).
===
Arie Molendijk.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.