I have 2 tables (within a container table that you don't see) in which the first column is not aligning when rendered to the screen. The first column in the first table have a very small width. The first column in the second table is much more wide. Why is this? they should both fall to the right.
Response.Write(" <table width=""100%"" align=""center"" border=""1"" bordercolor=""#fff"" cellspacing=""2"" cellpadding=""0"">" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""center"" valign=""top"" class=""mainbody"">" & vbCrLf)
Response.Write(" <form action=""register.asp?acti
on=custent
ered"" method=""post"" name=""custform"" OnSubmit=""return CheckNewRequest1();"">" & vbCrLf)
Response.Write(" <input type=""hidden"" name=""write_customer"" value=""1"">" & vbCrLf)
Response.Write(" <table align=""center"" border=""1"" bordercolor=""#fff"" cellspacing=""0"" cellpadding=""0"">" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Fir
st Name</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration"">" & Query("FName") & "</td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Las
t Name</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration"">" & Query("LName") & "</td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Gen
der</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration""><LA
BEL FOR=""phonetype""> Male</label><input type=""radio"" name=""gender1"" value=""1"" class=""radio""><label for=""phonetype2"">Female<
/label><in
put type=""radio"" name=""gender2"" value=""1"" class=""radio""></td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Add
ress Line 1</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration""><in
put type=""text"" name=""add1"" size=""20"" maxlength=""20"" value=""" & Query("address1") & """></td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Add
ress Line 2</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration""><in
put type=""text"" name=""add2"" size=""20"" maxlength=""20"" value=""" & Query("address2") & """></td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Cit
y</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration""><in
put type=""text"" name=""city"" size=""15"" maxlength=""20"" value=""" & Query("city") & """></td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Sta
te or Province</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration""><se
lect name=""state"" class=""registration"">" & vbCrLf)
strSQL1 = "sp_Get_States"
Set Query1 = objConnection.Execute(strS
QL1)
If Trim("" & Query("StateID")) = "" then
Response.Write(" <option value="""" selected >Select a State</option>"& vbCrLf)
End If
If NOT Query1.EOF Then
Do While NOT Query1.EOF
If Trim(Query1("StateID")) = Trim(Query("StateID")) Then
Response.Write(" <option value=""" & Query1("StateID") & """")
Response.Write (" selected >" & Query1("StateName") & "</option>" & vbCrLf)
Else
Response.Write(" <option value=""" & Query1("StateID") & """")
Response.Write (">" & Query1("StateName") & "</option>" & vbCrLf)
End If
Query1.MoveNext
Loop
Else
Response.Write(" <option value="""">Error -- No States Found</OPTION>" & vbCrLf)
End If
Query1.Close
Set Query1=Nothing
Response.Write(" </select>" & vbCrLf)
Response.Write(" Zip Code<input type=""text"" name=""zip"" size=""8"" maxlength=""20"" value=""" & Query("zip") & """></td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Cou
ntry</td>"
& vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration""><in
put type=""text"" name=""country"" size=""15"" maxlength=""20"" value=""" & Query("country") & """></td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Pri
mary Phone</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration"">(<i
nput type=""text"" name=""phonearea"" size=""1"" maxlength=""3"" value=""" & Query("phonearea") & """>) - <input type=""text"" name=""phonepre"" size=""1"" maxlength=""3"" value=""" & Query("phoneprefix") & """> - <input type=""text"" name=""phonepre"" size=""1"" maxlength=""4"" value=""" & Query("phonesuffix") & """><LABEL FOR=""phonetype""> Home</label><input type=""radio"" name=""phonetype1"" value=""1"" class=""radio""><label for=""phonetype2"">Cell</l
abel><inpu
t type=""radio"" name=""phonetype2"" value=""1"" class=""radio""></td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Ema
il</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration""><in
put type=""text"" name=""email_pre"" size=""15"" maxlength=""20"" value=""" & Query("emailprefix") & """>@<input type=""text"" name=""email_suf"" size=""15"" maxlength=""20"" value=""" & Query("emailsuffix") & """></td>")
Response.Write(" </tr>" & vbCrLf)
Response.Write(" </table>" & vbCrLf)
Response.Write(" </td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" </table>" & vbCrLf)
Response.Write(" <table width=""100%"" align=""center"" border=""1"" bordercolor=""#fff"" cellspacing=""2"" cellpadding=""0"">" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""center"" valign=""top"" class=""mainbody"">" & vbCrLf)
Response.Write(" <table align=""center"" border=""1"" bordercolor=""#fff"" cellspacing=""0"" cellpadding=""0"">" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"" width=""25%"">User Name</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration"">" & Query("username") & "</td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Ali
as / Name</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration"">" & Query("alias") & "</td>" &vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Pas
sword</td>
" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration""><in
put type=""password"" name=""psswd"" size=""15"" maxlength=""15""></td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Con
firm Password</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration""><in
put type=""password"" name=""conf_psswd"" size=""15"" maxlength=""15""></td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Ind
ustry</td>
" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration""></t
d>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">Pri
mary Messaging Interface</td>" & vbCrLf)
Response.Write(" <td align=""left"" valign=""top"" class=""registration"">" & vbCrLf)
Response.Write(" <select name=""InstMessType"" size=""1"">" & vbCrLf)
Response.Write(" <option value=""1"">AOL Messenger</option>" & vbCrLf)
Response.Write(" <option value=""2"">ICQ</option>" & vbCrLf)
Response.Write(" <option value=""3"">MSN Messenger</option>" & vbCrLf)
Response.Write(" <option value=""4"">Yahoo Messenger</option>" & vbCrLf)
Response.Write(" </select>" & vbCrLf)
Response.Write(" </td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" <tr>" & vbCrLf)
Response.Write(" <td align=""right"" valign=""top"" class=""registration"">&nb
sp;</td>" & vbCrLf)
Response.Write(" <td align=""left"" colspan=""3"" valign=""top""><br><input type=""submit"" name=""reg"" VALUE=""Update Profile"" class=""submitbutton"">" & vbCrLf)
Response.Write(" <br><br><br><br><br><br><b
r><br><br>
<br><br><b
r><br><br>
<br><br><b
r><br><br>
<br><br><b
r><br><br>
<br></td>"
& vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" </table>" & vbCrLf)
Response.Write(" </form>" & vbCrLf)
Response.Write(" </td>" & vbCrLf)
Response.Write(" </tr>" & vbCrLf)
Response.Write(" </table>" & vbCrLf)