I didn't really mean anything other than what I said, which was prefaced with:
If you want specific help
I'm still not clear if you do or not. I'm beginning to think maybe you do.
Anyways, in an attempt to illustrate more of what I've been saying about a standard page versus non-standard page, consider this - The page is in Quirks Mode because it has no standards invoking DOCTYPE. That means that each browser may interpret it however it likes. If you use a standards invoking DOCTYPE like so, I don't think any browser will render the page as intended:
Code:
<!DOCTYPE html>
<html>
<head>
<title>CG Entertainment DJ Login</title>
<link rel="Stylesheet" type="text/css" href="../css/login.style.css">
</head>
<body>
<div id="login_spacer"></div>
<div id="loginpanel">
<center>
<div id="loginbox_content_spacer"></div>
<div id="login_form">
<form name="form1" method="post" action="checklogin.php">
<b>Username</b>:<br>
<input name="myusername" type="text" id="myusername" size="20"><br>
<b>Password</b>:<br>
<input name="mypassword" type="password" id="mypassword" size="20"><br>
<br>
<input type="submit" name="Submit" value="    Log In    ">
    
<input type="reset" name="Reset" value="    Reset    ">
</form>
</div>
</div>
</body>
</html>
Try it out, I think you will see what I mean. If you can get any browser to render it as desired in standards mode, chances are that all browsers, including IE will render it the same or very close to the same, requiring only small tweaks if any.
Next take the css file and make it standard by using units for px values. In standards mode these are required unless the value is 0. I found only two places:
Code:
#loginpanel
{
background-image: url(../images/login-page/login_box.png); width: 500px; height: 300px; margin-bottom: auto; margin-left: auto; margin-right: auto; margin-top: auto;
}
Take care of that, use it with the version of the page in this post, clear the cache in IE and refresh the page - Viola!
But to truly make the markup valid, use this page:
HTML Code:
<!DOCTYPE html>
<html>
<head>
<title>CG Entertainment DJ Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="Stylesheet" type="text/css" href="../css/login.style.css">
</head>
<body>
<div id="login_spacer"></div>
<div id="loginpanel">
<div id="loginbox_content_spacer"></div>
<div id="login_form">
<form name="form1" method="post" action="checklogin.php">
<b>Username</b>:<br>
<input name="myusername" type="text" id="myusername" size="20"><br>
<b>Password</b>:<br>
<input name="mypassword" type="password" id="mypassword" size="20"><br>
<br>
<input type="submit" name="Submit" value=" Log In ">
<input type="reset" name="Reset" value=" Reset ">
</form>
</div>
</div>
</body>
</html>
and add (in the stylsheet, in addition to those two px's) the highlighted:
Code:
#loginpanel
{
text-align: center; background-image: url(../images/login-page/login_box.png); width: 500px; height: 300px; margin-bottom: auto; margin-left: auto; margin-right: auto; margin-top: auto;
}
Bookmarks