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>
Basically two div s: one “horizontal” (height 2px) and one “vertical” (height 2px).
When I view a page on firefox:

while on IE (8) something related happens:

top div is not high 2px.
Any idea why so?
source share