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>
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
+ 1
Can you please provide your HTML code? Have you tried CSS vertical-align property?