Forums

PHP

This topic is locked

problems with texfield alignment

Posted 25 Jun 2003 15:20:22
1
has voted
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>
&lt;td height="40" colspan="2" valign="top"&gt;&lt;table width="172" border="0" align="left" cellpadding="0" cellspacing="0"&gt;
&lt;!--DWLayoutTable--&gt;
&lt;td width="172"&gt; &lt;form method='post' action='forums/login.php'&gt;

&lt;table width='172' border='0' bordercolor='#0000CC' cellpadding='0' cellspacing='0' class=content&gt;
&lt;!--DWLayoutTable--&gt;
&lt;tr&gt;&lt;td width='62' rowspan="3" align="left" valign="middle"&gt;&lt;div align='left' class="fieldtext"&gt;&lt;span class="fieldtext"&gt;User ID&nbsp;&lt;/span&gt;&nbsp;&lt;/div&gt;
&lt;/td&gt;
&lt;td width="51" height="18" valign="top"&gt;
&lt;input name='username' type='text' size="8" class="verdana6" style="height:18px;"&gt;
&lt;b&gt; &lt;/b&gt; &lt;/td&gt;
&lt;td width="56" rowspan="2" valign="top"&gt;&lt;input type='hidden' name='redirect2' value='' /&gt;
&lt;b&gt;
&lt;input type=hidden name=autologin2 value=1&gt;
&lt;/b&gt;&lt;/td&gt;
&lt;td width="1"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td rowspan="4" valign="top"&gt;&lt;b&gt;
&lt;input name='password' type='password' size="8" class="verdana6" style="height:18px;"&gt;
&lt;/b&gt; &lt;/td&gt;
&lt;td height="1"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td rowspan="4" align="left" valign="top"&gt;&lt;input type='submit' name='login' value='ok' style="height:18px;"&gt;
&lt;/td&gt;
&lt;td height="3"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height="12" align="left" valign="middle"&gt;
&lt;div align="left"&gt;&lt;span class="fieldtext"&gt;Password&lt;b&gt;&nbsp; &lt;/b&gt;&lt;/span&gt; &lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height="2"&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height="1"&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</font id=code></pre id=code>

Reply to this topic