How can I vertically align text input fields using CSS?
<form action='<?= $_SERVER['PHP_SELF']; ?>' method='post'>
<p><label for='username' class=''>Username:</label>
<input type='text' name='username' id='username' class='field' value='' tabindex='10' /></p>
<p><label for='password' class=''>Password:</label>
<input type='text' name='password' id='password' class='field' value='' tabindex='20' /></p>
<p><label for='e-mail' class=''>E-mail:</label>
<input type='text' name='e-mail' id='e-mail' class='field' value='' tabindex='35' /></p>
<p><input type='submit' name='insert' id='insert' class='button' value='Insert!' tabindex='40' /></p>
</form>
Are there alternatives to using tables for alignment?
Thank you, Patrick