Can someone explain why this code renders as as a 600px high block in IE8, but as a 2000px high block in FF (and Chrome)? Personally I would expect the IE behaviour, but I’m no expert on standards. My reasoning here is that the innermost div should not affect the height of anything, since its parent has “overflow:hidden”.
[CODE]<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” >
<head><title>Untitled Page</title>
<style type=”text/css”>
* { margin: 0; padding:0; }
html, body, table, tr, td { width:100%; height:100%;}
</style>
</head>
<body>
<div style=”height:600px;”>
<table cellpadding=”0″ cellspacing=”0″>
<tr>
<td>
<div style=”overflow:hidden;height:100%;background-color:red;width:300px;”>
<div id=”testdiv” style=”background-color:blue;width:200px;height:2000px;overflow:auto;”>
TEST!
</div>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>