You are doing something else 'wrong' for IE, because this:
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" dir="ltr" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
div {
float: left;
width: 250px;
background-color: lightblue;
}
</style>
<script type="text/javascript">
function height()
{
var height = document.getElementById('container').clientHeight - 164;
document.getElementById('main').style.height = ''+height+'px';
}
onload = height;
</script>
</head>
<body>
<div id="container">
Hey there<br>
Hey there<br>
Hey there<br>
Hey there<br>
Hey there<br>
Hey there<br>
Hey there<br>
Hey there<br>
Hey there<br>
Hey there<br>
Hey there<br>
Hey there<br>
</div>
<div id="main">
</div>
</body>
</html>
works fine in both browsers.
If you want more help:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks