0
how can i align the password input box to the username box
<form> <label>Your name:</label> <input id="user" name="username" type="text" /><br> <label> Password:</label> <input id="Password" name="password" type="password" </form>
1 Answer
+ 1
1_close well your last input tag
2_By adding <br> before inputs or by adding the following css :
form {
display: grid;
width: 100%
grid-template-columns: 10% 50%;
} // this will be surely what you want but you have to change the percentages of grid-template-columns if the width doesn't fits you