My website structure is simple:
Username: [ ] |
Password: [ ] |
The issue is that I want them to align with the vertical bars on the right side.
Here's the code:
<form i d="cred">
<h3 class="credin">Username:</h3>
<input class="credin" type="text" name="username" value=""> <br>
<h3 class="credin">Password:</h3>
<input class="credin" type="password" name="password" value=""> <br>
<a><p id="logout">(Sign up)</p></a>
<input id="login" type="submit" value="Log in">
</form>
And here's the corresponding CSS:
.credin {
font-size:21px;
margin:0px;
display:inline;
font-family:Arial, sans-serif;
}
#login {
font-size:24px;
margin-bottom:0px;
padding-bottom:0px;
width:30%;
}
#logout {
margin:0px;
font-size:19px;
}
input.credin{
margin-left:auto;
margin-right:0px;
padding-right:0px;
padding-left:auto;
}
Here's a bigger view:
.credin {
font-size:21px;
margin:0px;
display:inline;
font-family:Arial, sans-serif;
}
#login {
font-size:24px;
margin-bottom:0px;
padding-bottom:0px;
width:30%;
}
#logout {
margin:0px;
font-size:19px;
}
input.credin{
margin-left:auto;
margin-right:0px;
padding-right:0px;
padding-left:auto;
}
<form i d="cred">
<h3 class="credin">Username:</h3>
<input class="credin" type="text" name="username" value=""> <br>
<h3 class="credin">Password:</h3>
<input class="credin" type="password" name="password" value=""> <br>
<a><p id="logout">(Sign up)</p></a>
<input id="login" type="submit" value="Log in">
</form>