Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alignment IS DRIVING ME CRAZY

Status
Not open for further replies.

SuperCyber

Programmer
Aug 10, 2001
35
US
Sorry for this stupid question but I have looked everywhere and tried everything I can think of but for some reason I am drawing a blank. All I need to do is figure out how to line the &quot;Country&quot; field to match up with the rest of the form. I have two problems, first, I can’t make the red &quot;*&quot; next to the Country field align at the top of the cell unless it is in a <td></td> cell. And the second, I don’t want to change the spacing or positioning of the rest of the form while realigning the Country field. Any help is VERY appreciated, I have wasted over a day on this field.

Thanks,
Brian


<table ALIGN=&quot;center&quot; border=&quot;1&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; width=&quot;583&quot;>
<tr><BR>
<td width=&quot;25%&quot;><b>Title:</b></td>
<td valign=top width=&quot;1%&quot;> </td>
<td width=&quot;1%&quot; colspan=6><select id=&quot;SIR_NAME&quot; name=&quot;HONORIFIC&quot;>
<option value=&quot;&quot; selected>
<option value=&quot;Mr.&quot;>Mr.
<option VALUE=&quot;Mrs.&quot;>Mrs.
<option value=&quot;Ms.&quot;>Ms.
</option></select></td>
</tr></TR>
<tr>
<td width=&quot;25%&quot;><b>First Name:</b></td>
<td valign=top width=&quot;1%&quot;><b style=&quot;COLOR: red&quot;>*</b></td>
<td colspan=6><input NAME=&quot;FIRST_NAME&quot;></td>
</tr>
<tr>
<td width=&quot;25%&quot;><b>Middle Name:</b></td>
<td valign=top width=&quot;1%&quot;> </td>
<td colspan=6><input NAME=&quot;MIDDLE_NAME&quot;></td>
</tr>
<tr>
<td width=&quot;25%&quot;><b>Last Name:</b></td>
<td valign=top width=&quot;1%&quot;><b style=&quot;COLOR: red&quot;>*</b></td>
<td colspan=6><input NAME=&quot;LAST_NAME&quot;></td>
</tr>
<tr>
<td width=&quot;25%&quot;><b>Company:</b></td>
<td valign=top width=&quot;1%&quot;><b style=&quot;COLOR: red&quot;>*</b></td>
<td colspan=6><input NAME=&quot;COMPANY&quot; Size=&quot;48&quot; style=&quot;HEIGHT: 22px; WIDTH: 346px&quot;></td>
</tr>
<tr>
<td width=&quot;25%&quot;><b>Address
#1:</b></td>
<td valign=top width=&quot;1%&quot;><b style=&quot;COLOR: red&quot;>*</b></td>
<td colspan=6><input NAME=&quot;DEA&quot; Size=&quot;48&quot; style=&quot;HEIGHT: 22px; WIDTH: 346px&quot;></td>
</tr>
<tr>
<td width=&quot;25%&quot;><b>Address
#2:</b></td>
<td valign=top width=&quot;1%&quot;><b style=&quot;COLOR: red&quot;>*</b></td>
<td colspan=6><input NAME=&quot;LICENSE&quot; Size=&quot;48&quot; style=&quot;HEIGHT: 22px; WIDTH: 346px&quot;></td>
</tr>

<tr>
<td width=&quot;25%&quot;><STRONG>Fax #:</STRONG></td>
<td valign=top width=&quot;1%&quot;><b style=&quot;COLOR: red&quot;>*</b></td>
<td colspan=6><input NAME=&quot;ADDRESS&quot; style=&quot;HEIGHT: 22px; WIDTH: 160px&quot;></td>
</tr>
<tr>
<td width=&quot;25%&quot;><b> City, State:</b></td>
<td valign=top width=&quot;1%&quot;><b style=&quot;COLOR: red&quot;>*</b></td>
<td colspan=3><input NAME=&quot;CITY&quot; size=21></td>
<td valign=top width=&quot;5&quot;><b style=&quot;COLOR: red&quot;>*</TD>
<td><select NAME=&quot;STATE_CODE&quot; Size=&quot;1&quot;>
<option value selected>
<option VALUE=&quot;Northwest Territories&quot;>Northwest Territories</option>
</select></td>
<td width=100> </td>
</tr>
<tr>
<td width=&quot;25%&quot;><b>Zip, Country:</b></td>
<td valign=top width=&quot;1%&quot;><b style=&quot;COLOR: red&quot;>*</b></td>
<td width=&quot;50&quot;><input name=&quot;POSTAL_CODE&quot; size=8></td>
<td valign=top width=&quot;1%&quot;><b style=&quot;COLOR: red&quot;>*</TD>
<td colspan=4><select size=&quot;1&quot; name=&quot;COUNTRY_CODE&quot;>
<option value selected>
<option value=&quot;St. Vincent and the Grenadines&quot;>St. Vincent and the Grenadines</option>
</select></td>
</tr>
<tr>
<td width=&quot;25%&quot;><b>Office Phone:</b></td>
<td valign=top width=&quot;1%&quot;><b style=&quot;COLOR: red&quot;>*</b></td>
<td colspan=6><input NAME=&quot;OFFICE_PHONE&quot;></td>
</tr>
<tr>
<td width=&quot;25%&quot;><b>Alt Phone:</b></td>
<td valign=top width=&quot;1%&quot;> </td>
<td colspan=6><input NAME=&quot;ALT_PHONE&quot;></td>
</tr>
<tr>
<td width=&quot;25%&quot;><b>E-mail Address:</b></td>
<td valign=top width=&quot;1%&quot;> </td>
<td colspan=6><input NAME=&quot;EMAIL&quot; style=&quot;HEIGHT: 22px; WIDTH: 225px&quot;></td>
</tr>
</table>



 
Try this:

Delete the &quot;colspan=3&quot; in the &quot;CITY-<td>&quot;
Delete the &quot;colspan=4&quot; in the &quot;COUNTRY_CODE-<td>&quot;

Like:

<td><input NAME=&quot;CITY&quot; size=21></td>

<td><select size=&quot;1&quot; name=&quot;COUNTRY_CODE&quot;>

Hope this helps,
Erik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top