fdoze
08-07-2007, 08:35 AM
Hi,
I have 3 divs. 1 at the top. and one (it will bemany more) at the bottom.
I want 2 divs to satay up and then the 3rd div.
The problem is that I set my bottom div to have margin-top eqqual to top divs height and IE dont respect that. Firefox works great.
Here is my 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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BO</title>
<style type="text/css">
<!--
/* -- bo CSS - */
body {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
}
.ajax-loading {
background: url(img/loading_spinner.gif) no-repeat center;
}
#loading{
width: 100%;
height: 30px;
display: block;
left: 0px;
top: 0px;
position: absolute;
}
#datetime{
height: 30px;
display: block;
right: 0px;
top: 0px;
position: absolute;
text-align:right;
padding-right: 6px;
padding-top: 1px;
font-size: 10px;
}
#log-output{
margin-top: 40px;
width: 100%;
height: 150px;
display: block;
overflow:auto;
cursor: nw-resize;
border: 1px solid #E0E0E0;
background-color: #FFFFFF;
/*
*/
}
#login-menu{
display:block;
}
-->
</style>
</head>
<body>
<div id="loading"> </div>
<div id="datetime"></div>
<div id="log-output"></div>
<div id="login-menu">
<form id="myFormLogin" action="f12doLogin.php" method="get" name="myForm">
<p>username:
<input type="text" name="username" id="userName" />
password:
<input type="text" name="userpass" id="userPass" />
<input type="submit" name="button" id="submitLogin" value="Login" />
</p>
</form>
</div>
</body>
</html>
What do you think?
f.
I have 3 divs. 1 at the top. and one (it will bemany more) at the bottom.
I want 2 divs to satay up and then the 3rd div.
The problem is that I set my bottom div to have margin-top eqqual to top divs height and IE dont respect that. Firefox works great.
Here is my 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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BO</title>
<style type="text/css">
<!--
/* -- bo CSS - */
body {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
}
.ajax-loading {
background: url(img/loading_spinner.gif) no-repeat center;
}
#loading{
width: 100%;
height: 30px;
display: block;
left: 0px;
top: 0px;
position: absolute;
}
#datetime{
height: 30px;
display: block;
right: 0px;
top: 0px;
position: absolute;
text-align:right;
padding-right: 6px;
padding-top: 1px;
font-size: 10px;
}
#log-output{
margin-top: 40px;
width: 100%;
height: 150px;
display: block;
overflow:auto;
cursor: nw-resize;
border: 1px solid #E0E0E0;
background-color: #FFFFFF;
/*
*/
}
#login-menu{
display:block;
}
-->
</style>
</head>
<body>
<div id="loading"> </div>
<div id="datetime"></div>
<div id="log-output"></div>
<div id="login-menu">
<form id="myFormLogin" action="f12doLogin.php" method="get" name="myForm">
<p>username:
<input type="text" name="username" id="userName" />
password:
<input type="text" name="userpass" id="userPass" />
<input type="submit" name="button" id="submitLogin" value="Login" />
</p>
</form>
</div>
</body>
</html>
What do you think?
f.