Probably: https://developer.mozilla.org/en/Ima...ysterious_Gaps
Need to see how you are centering and which version(s) of IE have the problem.
Centering in all browsers (if position:absolute is not used):
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Basic centering</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
#centered {text-align:center;}
#container {margin:0 auto; width:80%; text-align:left;}
</style>
</head>
<body>
<!-- Center contents -->
<div id="centered"><div id="container">
<div id="contents" style="border:1px solid red;">
<p>contents</p>
</div>
</div></div>
</body>
</html>
</body>
</html>
At least 98% of internet users' DNA is identical to that of chimpanzees
Bookmarks