JohnandSwifty
Technical User
HELP!- I need my app to fit the window in the same way outlook's online access does (but with divs not frames).
I built the whole thing using position absolute which works great in IE7, firefox etc, but not IE6 (and possibly others).
Can anyone tell me whats wrong with below?...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Fit to page TEST</title>
<style type="text/css">
body {
background:#000000;
padding:0px;
margin:0px;
}
/* Level 01 Container **************/
#lev01Cont {
background:#99CCCC;
position:absolute;
top:5px;
bottom:5px;
left:5px;
right:5px;
}
/* Level 02 Container **************/
#lev02Cont {
background:#FFFFFF;
position:absolute;
top:10px;
bottom:10px;
left:10px;
right:10px;
}
</style>
</head>
<body>
<div id="lev01Cont">
<div id="lev02Cont">
</div>
</div>
</body>
</html>
I built the whole thing using position absolute which works great in IE7, firefox etc, but not IE6 (and possibly others).
Can anyone tell me whats wrong with below?...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Fit to page TEST</title>
<style type="text/css">
body {
background:#000000;
padding:0px;
margin:0px;
}
/* Level 01 Container **************/
#lev01Cont {
background:#99CCCC;
position:absolute;
top:5px;
bottom:5px;
left:5px;
right:5px;
}
/* Level 02 Container **************/
#lev02Cont {
background:#FFFFFF;
position:absolute;
top:10px;
bottom:10px;
left:10px;
right:10px;
}
</style>
</head>
<body>
<div id="lev01Cont">
<div id="lev02Cont">
</div>
</div>
</body>
</html>