registeredspider
02-04-2009, 01:09 PM
I created a div (testdiv) and want it to acquire full screen height in IE and FF. It wis working fine in IE but in FF it is not working...:mad:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div id="testdiv" style="background:red;">Content for id "testdiv" Goes Here</div>
<script language="javascript">
var frame = document.getElementById("testdiv");
frame.style.height =parseInt(document.documentElement.clientHeight) - 156;
</script>
</body>
</html>
please help me out to make it work in FF thank u :D
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div id="testdiv" style="background:red;">Content for id "testdiv" Goes Here</div>
<script language="javascript">
var frame = document.getElementById("testdiv");
frame.style.height =parseInt(document.documentElement.clientHeight) - 156;
</script>
</body>
</html>
please help me out to make it work in FF thank u :D