Struggling with my attempt to create a basic login page, I encountered an issue. A specific input within a form nested in a table keeps jumping to the top left corner of the page. Below is the structure of my code:
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<table class="center">
<tr>
<td>
<p style="size: 16px; font-family: Comic Sans MS">LOGIN</p>
</td>
</tr>
<tr>
<td>
<form>
<input type="email" name="mail"><br>
<input type="password" name="password"><br>
<input type="reset"></td>
</form>
<input type="submit" name="submit">
<td>
</tr>
</table>
</body>
</html>
In addition to the HTML markup, here are a couple lines of CSS:
table.center {
margin-top: auto;
margin-left: auto;
margin-right: auto;
text-align: center;
}
The 'submit' button continues to misbehave and refuses to stay put.
Your assistance is greatly appreciated.