whitetree
01-19-2012, 05:49 PM
I can get everything to look nice and proper for Firefox, Chrome and Safari but IE is throwing a fit and not playing along. It puts an imaginary box at the top of the page for one of my divs and throws off alignment for everything. I'm a big coding newb and could use some help.
I want an image to auto adjust with browser size and have a form in the middle of that image(or anywhere inside the image) It works great in everything but IE
<html>
<head>
<link rel="stylesheet" href="main.css"
type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Login</title>
</head>
<body bgcolor="#33090f">
<div id="content">
<div style="position: relative; width: 0px; height: 0px; z-index:1 ; left: -150px; top: 275px" id="layer1">
<form action="files/LoginAction.asp" method=POST name="the_form">
<table border="0" width="100%">
<tr>
<td width="34%" align="left"><b><font face="Helvetica" size="2" color="#000000">
Login :</font></b></td>
<td colspan="2" align="right">
<input type="text" name="UserID" size="20" style="width: 150"></td>
</tr>
<tr>
<td width="34%" align="left"><b><font face="Helvetica" size="2" color="#000000">
Password :</font></b></td>
<td colspan="2" align="right"><input type="password" name="password" size="20" style="width: 150" ></td>
</tr>
<tr>
<td width="58%" colspan="2" align="left"><b><font face="Helvetica" size="2" color="#000000">
</font></b><a style="font-family: Helvetica; font-size: 10pt; font-weight: bold; text-decoration: none" href="files/lostUserIDFrame.asp"><font color="#000000">Forgot Password ?</font></a></td>
<td width="53%" align="right">
<button name="B1" type=submit style="width: 80px; font-family:Helvetica; font-size:10pt; font-weight:bold">Login</button></td>
</tr>
</table>
<p class="content"> </p>
</form>
</div>
<img src="login_page.jpg" width="800" height="511" border="0">
</body>
</html>
and it's complementing CSS
@charset "utf-8";
/* CSS Document */
}
div#layer1
{
margin-left: 10%;
margin-right: 10%;
}
div#layer1
{
margin-left: auto;
margin-right: auto;
width: 50em;
}
body
{
text-align: center;
}
}
div#content
{
margin-left: 10%;
margin-right: 10%;
}
div#content
{
margin-left: auto;
margin-right: auto;
width: 50em;
}
body
{
text-align: center;
}
I want an image to auto adjust with browser size and have a form in the middle of that image(or anywhere inside the image) It works great in everything but IE
<html>
<head>
<link rel="stylesheet" href="main.css"
type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Login</title>
</head>
<body bgcolor="#33090f">
<div id="content">
<div style="position: relative; width: 0px; height: 0px; z-index:1 ; left: -150px; top: 275px" id="layer1">
<form action="files/LoginAction.asp" method=POST name="the_form">
<table border="0" width="100%">
<tr>
<td width="34%" align="left"><b><font face="Helvetica" size="2" color="#000000">
Login :</font></b></td>
<td colspan="2" align="right">
<input type="text" name="UserID" size="20" style="width: 150"></td>
</tr>
<tr>
<td width="34%" align="left"><b><font face="Helvetica" size="2" color="#000000">
Password :</font></b></td>
<td colspan="2" align="right"><input type="password" name="password" size="20" style="width: 150" ></td>
</tr>
<tr>
<td width="58%" colspan="2" align="left"><b><font face="Helvetica" size="2" color="#000000">
</font></b><a style="font-family: Helvetica; font-size: 10pt; font-weight: bold; text-decoration: none" href="files/lostUserIDFrame.asp"><font color="#000000">Forgot Password ?</font></a></td>
<td width="53%" align="right">
<button name="B1" type=submit style="width: 80px; font-family:Helvetica; font-size:10pt; font-weight:bold">Login</button></td>
</tr>
</table>
<p class="content"> </p>
</form>
</div>
<img src="login_page.jpg" width="800" height="511" border="0">
</body>
</html>
and it's complementing CSS
@charset "utf-8";
/* CSS Document */
}
div#layer1
{
margin-left: 10%;
margin-right: 10%;
}
div#layer1
{
margin-left: auto;
margin-right: auto;
width: 50em;
}
body
{
text-align: center;
}
}
div#content
{
margin-left: 10%;
margin-right: 10%;
}
div#content
{
margin-left: auto;
margin-right: auto;
width: 50em;
}
body
{
text-align: center;
}