I created a table structure that includes form fields like this:
<form >
<table>
<tr>
<td>Name :</td> <td><input type="text" name="name"></td><br>
</tr>
<tr>
<td>Password :</td> <td><input type="password" name="pwd"></td><br>
</tr>
<tr>
<td><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
My goal is to center the <input>
elements in this table design. When applying <table align="center">
, the entire table is centered but the input fields are not perfectly aligned. How can I adjust the alignment so that the middle of the input boxes matches the center of the screen?
Appreciate any assistance!