I have this simple HTML
<html>
<head>
<style>
</style>
</head>
<body>
<div style="position: relative; overflow: visible; width: 100%; height: 100%;" class="surface">
<div style="width: 300px; max-height: 2px; height: 2px; position: absolute; left: 36.165px; top: 0.8957px; border: 1px solid red;"></div>
<div style="width: 1px; height: 200px; position: absolute; left: 30.165px; top: 47.8957px; border: 1px solid red;"></div>
</div>
</body>
</html>
There are basically two divs: one “horizontal” (height 2px) and one “vertical” (height 2px).
When I view the page on firefox:

while on IE (8) something weired happens:

the top DIV is not 2px high.
Any idea why is that so ?
Your possible solutions :
1). Add
display: blockto your style2). check you have a proper
DOCTYPEotherwise (IE) quirks mode will produce unexpected format and results. Check this article for reference