I have a form that is centered on the page, and the elements are centered in the form. I want the text, however, to align to the left edge of the input boxes in my form. In other words, I want the first letter of the text to start at the left edge of the input box. See code and image below:
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Log In</title>
</head>
<style type="text/css">
#wrapper{
border:1px solid black;
max-width:200px;
max-height:200px;
display-webkit-box;
margin-left:auto;
margin-right:auto;
padding:5px;
border-radius:5px;
}
#login input{
display:-webkit-box;
margin-left:auto;
margin-right:auto;
}
#login span{
}
</style>
<body>
<div id="wrapper">
<form id="login" action="#" method="POST">
<span>User Names:</span><br>
<input type="text"><br>
<span>Password:</span><br>
<input type="password"><br>
<input type="submit" value="Log In">
</form>
</div>
</body>
</html>