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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One Table's Under Another

Status
Not open for further replies.

scripter73

Programmer
Apr 18, 2001
421
US
Hi,

I have an HTML page with about 7 tables. All of the tables are separated with a <hr>, and most of them line up one right under the other. However, two tables have this annoying space between them that I CANNOT get rid of. Can someone inform me what I'm doing wrong with these two tables that I'm not doing with the others? I just want the second table right under the first. Below is a snippet of my code (sorry I didn't paste it all; would be too long).
Also, you can click on to see the whole thing. Thanks in advance. scripter73

Code:

<body leftmargin=50><font face=&quot;Verdana, Arial, Sans-Serif&quot; size=1 color=#083194&quot;>
<!--Table 6-->
<table cellpadding=0 cellspacing=0 width=600 border=1>
<tr>
<td width=150>
<table cellpadding=0 cellspacing=0 border=0 width=150 bgcolor=&quot;pink&quot;>
<tr>
<td width=64 align=&quot;left&quot;><img src=&quot;images/diamond.gif&quot;></td>
<td width=116 align=&quot;left&quot; valign=&quot;bottom&quot;><font size=2><b>INCIDENT INFORMATION:</b></font></td>
</tr>
</table>
</td>
<td width=450>Nothing Here</td>
</tr>
</table><!-- TOO MUCH SPACE AFTER THIS TABLE -->
AQUA TABLE GOES HERE; HOW DO I MINIMIZE/GET RID OF THIS SPACE?
<table cellpadding=0 cellspacing=0 width=600 border=1 bgcolor=&quot;aqua&quot; >
<!--blank row -->
<tr><td width=300 colspan=2><br></td></tr>
<tr><td width=300 align=&quot;center&quot; valign=&quot;top&quot;></td></tr>
<tr>
<td width=300 colspan=2>
<font size=2><b>Location of incident or accident:</b><img src=&quot;images/menubutton.gif&quot;></font>
</td>
<td width=300 valign=&quot;bottom&quot;><font size=2>
<input type=&quot;text&quot; maxlength=30 size=35>
</td>
</tr>

<tr>
<td width=300 colspan=2>
</td>

<td width=300 align=&quot;center&quot; valign=&quot;top&quot;>
<font size=&quot;-3&quot;>Street Address</font>
</td>
</tr>

<tr>
<td width=300 colspan=2>
</td>
<td width=300 colspan=2>
<input type=&quot;text&quot; maxlength=20 size=30> <select name=&quot;state&quot;>
<option value=&quot;#&quot; selected></option>
<option value=&quot;AL&quot;>AL </option>
<option value=&quot;AK&quot;>AK </option>
<option value=&quot;AZ&quot;>AZ </option>
<option value=&quot;WY&quot;>WY </option>
</select>
</td>
</tr>

<tr>
<td width=300 colspan=2></td>
<td width=300 align=&quot;center&quot;>
<font size=-3>City        
                
               State</font>
</td>
<!--<td width=200>
<font size=-3>State</font>
</td>-->
</tr>
<tr>
<td width=200 colspan=2>
<font size=2><b>Were the police contacted?</b>
</td>
<td width=400><font size=2>
<input type=&quot;checkbox&quot; name=&quot;policecontact&quot; value=&quot;yes&quot;><b><font size=2>YES</font></b><input type=&quot;checkbox&quot; name=&quot;policecontact&quot; value=&quot;no&quot;><b><font size=2>NO</font></b>
</td>
</tr>
<br><br>
<tr><td><br></td></tr>
<tr>
<td width=200 colspan=2>
<font size=2><b>Authority or City Police Department:</b>
</td>
<td width=400><font size=2>
<input type=&quot;text&quot; name=&quot;policedept&quot; maxlength=30 size=30>
</td>
</tr>
<tr><td><br></td></tr>
<tr>
<td width=200 colspan=2>
<font size=2><b>Police Report Number:</b>
</td>
<td width=400><font size=2>
<input type=&quot;text&quot; name=&quot;policedept&quot; maxlength=12 size=20>
</td>
</tr>
<tr><td><br></td></tr>
<br><br>

<tr>
<td width=600 colspan=4><font size=2><b>Describe the Incident or Accident Below:</b><img src=&quot;images/menubutton.gif&quot;></td>
</tr>

<tr>
<td width=600 colspan=4>
<textarea cols=60 rows=5 name=&quot;accdesc&quot;></textarea>
</td>
</tr>
<tr></tr>

<tr>
<td width=600 colspan=5><hr></td>
</tr>
</table>
</font>
</body>

 
You got two spots in the table that have <br><br> that isn't inside a table cell. That's what's throwing it off.

Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
You're welcome! I was sitting here bored and decided to take a crack at it.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
I didn't even think I'd get a reply (especially on a Friday). You saved my Monday! Thanks a bunch.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top