Forums
This topic is locked
problems with texfield alignment
25 Jun 2003 15:20:22 Harris Ng posted:
I'm trying to create the user login to the forum using PHP. But the textfields in the tables does not align properly in the page. Can I adjust the height of the textfield and button in Dreamweaver so that it aligned properly in the tables in my page. Attached below is the source code. Am I doing it right or can you guys tell me a better way to solve it.-Alamak-
My sourcecode:
<pre id=code><font face=courier size=2 id=code>
<td height="40" colspan="2" valign="top"><table width="172" border="0" align="left" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<td width="172"> <form method='post' action='forums/login.php'>
<table width='172' border='0' bordercolor='#0000CC' cellpadding='0' cellspacing='0' class=content>
<!--DWLayoutTable-->
<tr><td width='62' rowspan="3" align="left" valign="middle"><div align='left' class="fieldtext"><span class="fieldtext">User ID </span> </div>
</td>
<td width="51" height="18" valign="top">
<input name='username' type='text' size="8" class="verdana6" style="height:18px;">
<b> </b> </td>
<td width="56" rowspan="2" valign="top"><input type='hidden' name='redirect2' value='' />
<b>
<input type=hidden name=autologin2 value=1>
</b></td>
<td width="1"></td>
</tr>
<tr>
<td rowspan="4" valign="top"><b>
<input name='password' type='password' size="8" class="verdana6" style="height:18px;">
</b> </td>
<td height="1"></td>
</tr>
<tr>
<td rowspan="4" align="left" valign="top"><input type='submit' name='login' value='ok' style="height:18px;">
</td>
<td height="3"></td>
</tr>
<tr>
<td height="12" align="left" valign="middle">
<div align="left"><span class="fieldtext">Password<b> </b></span> </div>
</td>
<td></td>
</tr>
<tr>
<td height="2"></td>
<td></td>
</tr>
<tr>
<td height="1"></td>
<td></td>
<td></td>
</tr>
</table>
</form></td>
</tr>
</table>
</font id=code></pre id=code>