hello,
i want to make mt div to fill the whole window.. but by giving div height=100%, it dosn't work.. i've place my html code with this..
<!-- html code -->[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>div height</title>
<style type="text/css">
html body{
height:100%;
}
* html #backg {
height:100%
}
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background-color:#fff;
margin: 0;
padding: 0;
text-align: center;
color: #000000;
margin-left:0px;
margin-right:0px;
margin-top:0px;
margin-bottom:0px;
height:100%;
}
</style>
</head>
<body style="padding: 0; margin:0; ">
<div id="front-back" style="position :absolute; top: 0px; left: 0px; z-index:11139; margin:0em; padding:0em; background-color:#000000; min-width:100%; height:100%; visibility:visi ble; overflow:auto;" ></div>
<div style="position :relative; width:1004px; margin:0px auto; ">
<div style="position :absolute; top:1200px; left:300px; color:#FF0000; font-family:Arial, Helvetica, sans-serif; font-size:16px">I want my div (id="front-back") overlap this div and fill this whole winodow</div>
</div>
</body>
</html>[/html]
i want to make mt div to fill the whole window.. but by giving div height=100%, it dosn't work.. i've place my html code with this..
<!-- html code -->[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>div height</title>
<style type="text/css">
html body{
height:100%;
}
* html #backg {
height:100%
}
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background-color:#fff;
margin: 0;
padding: 0;
text-align: center;
color: #000000;
margin-left:0px;
margin-right:0px;
margin-top:0px;
margin-bottom:0px;
height:100%;
}
</style>
</head>
<body style="padding: 0; margin:0; ">
<div id="front-back" style="position :absolute; top: 0px; left: 0px; z-index:11139; margin:0em; padding:0em; background-color:#000000; min-width:100%; height:100%; visibility:visi ble; overflow:auto;" ></div>
<div style="position :relative; width:1004px; margin:0px auto; ">
<div style="position :absolute; top:1200px; left:300px; color:#FF0000; font-family:Arial, Helvetica, sans-serif; font-size:16px">I want my div (id="front-back") overlap this div and fill this whole winodow</div>
</div>
</body>
</html>[/html]
Comment