I have created an html file called Login. Here i have made a form with an userId input, and password input.
I want my login form to be in the middle of the screen (not just align="center"), anyone knows how to handle that?
my code so far:
<meta charset="ISO-8859-1">
<title>Please Login!</title>
<style>
body {
position: relative;
}
#form-relative {
width: 300px;
height: 200px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -100px;
margin-left: -150px;
}
</style>
</head>
<body style="background-color: #ECF6FE">
<div id="form-wrapper">
<form method="post" id="Login" action="validateLogin.jsp">
<table>
<tr>
<td>Enter userID:</td>
<td><input type="text" name="userid"></td>
</tr>
<tr>
<td>Enter password:</td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td><br> <input type="submit" value="Login" /> <input
type="reset" value="Cancel" /><br /></td>
</tr>
</table>
</form>
</div>
<div></div>
<h6 align="center">Note! An admin operator must use "admin" as
username and "masterkey" as password</h6>
</body>
</html>