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>

28th Dec 2021, 3:10 PM
Schneur Sanowicz
1 Odpowiedź
+ 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
28th Dec 2021, 5:43 PM
VCoder
VCoder - avatar