0

styling <form> elements ,updated

hello guys, i have made some codes for registration form, bt in the browser the boxes for text appears not in line(vertically arranged)...hw do i fix this, to be in the same vertical line? here r the codes..and if u see any errors, i'll b glad to know <body> <form action=" "> First name:<input type="text" name "first name"/> </br> Second name:<input type="text" name" second name"/> </br> Phone:<input type "password" name "password"/> </br> <input type="submit" name="submit" value="submit"/> </form> </body>

2nd Mar 2017, 8:50 PM
Kelvine De Danielo
Kelvine De Danielo - avatar
2 odpowiedzi
+ 5
Your syntaxe is incorrect ( but silently right corrected by browsers ): <br> don'h have any slash ( / ), and <input> ( or others 'empty' elements ) doesn't take an ending slash too ^^... Anyway, your <input>s are not inlined simply because you put <br> ( break line ) between them :P
3rd Mar 2017, 12:05 PM
visph
visph - avatar
+ 1
Can you please provide your HTML code? Have you tried CSS vertical-align property?
2nd Mar 2017, 10:14 PM
Davide Corbelletto
Davide Corbelletto - avatar