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

Extra space in a table

Status
Not open for further replies.

alsaffar

Programmer
Oct 25, 2001
165
KW
I have a problem when I make a form inside a table's cell, and in this form I have only an image submit button. Why there's an extra space at the bottom of the table's cell? How can I get rid of it?

I want the height of the table's cell to be the same height of the image submit button.

e.g. Preview this code in the FrontPage and you'll got my point:

<table border=&quot;1&quot;>
<tr>
<td>
<form method=&quot;post&quot; action=&quot;&quot;>
<input type=&quot;image&quot; src=&quot;image.gif&quot;>
</form>
</td>
</tr>
</table>
 
Try this:

<table border=&quot;1&quot;>
<tr>
<td><form style=&quot;margin:0;&quot; method=&quot;post&quot; action=&quot;&quot;><input type=&quot;image&quot; src=&quot;image.gif&quot;></form></td>
</tr>
</table>

Rick

-----------------------------------------------------------
RISTMO Designs
Arab Church
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top