Add a drop down in a table using HTML -
i trying add drop down box in table part of registration form. here code below :-
<html> <body></body> <h1>cab</h1> <table border="0"> <tr> <td>name</td> <td align="left"><input type="text" size="25" name="fname"> </td> </tr> <tr> <td>phone number</td> <td align="left"><input type="text" size="25" name="phnnum"> </td> </tr> <tr> <td class = "select">online password (repeated) <select> <option value="volvo">volvo</option> <option value="saab">saab</option> <option value="mercedes">mercedes</option> <option value="audi">audi</option> </select> <td align="center"></td> </td> </tr> </table> <input type="submit" value="submit"> <input type="reset" value="clear"> </html>
when drop down box doesn't come in format other fields come. want drop down box right below text field above it.
its because have put "online password (repeated)" text , drop down in same column td
and second td blank..
<tr> <td class = "select">online password (repeated) <select> <option value="volvo">volvo</option> <option value="saab">saab</option> <option value="mercedes">mercedes</option> <option value="audi">audi</option> </select> <td align="center"></td> </td> </tr>
replace above code below
<tr> <td class = "select">online password (repeated) </td> <td align="center"> <select> <option value="volvo">volvo</option> <option value="saab">saab</option> <option value="mercedes">mercedes</option> <option value="audi">audi</option> </select> </td> </tr>
i hope u can find u made mistake
check jsfiddle
Comments
Post a Comment