PDA

View Full Version : Removing The Gap Between HTML Tables



Echo54321
12-02-2008, 02:46 PM
Ok i have TWO html tables eg.

<table><td>HI</td></table>

<br/>


<table><td>HI AGAIN</td></table>

This would generate two html tables, one on top other the other, put hi do i remove the little gap in between them?

+REp for the helper

Tomm
12-02-2008, 02:49 PM
Delete the <br/>

Echo54321
12-02-2008, 02:51 PM
Just did, Still Gap :@

Moh
12-02-2008, 02:54 PM
<table><td>HI</td></table>
<table><td>HI AGAIN</td></table>

Or if you mean so there next to each other:

<table><td>HI</td><td>HI AGAIN</td></table>

theJOSH
12-02-2008, 03:11 PM
<table><td>HI</td></table>
<table><td>HI AGAIN</td></table>Or if you mean so there next to each other:

<table><td>HI</td><td>HI AGAIN</td></table>

Space between lines in HTML does not matter.

Moh
12-02-2008, 03:19 PM
Space between lines in HTML does not matter.
Ino, just looks neater when I post.

The other alternative is

<table cellpadding="0" cellspacing="0" width="70" height="38">
<tr>
<td height="19" width="70">HI</td>
</tr>
<tr>
<td height="19" width="70">HI AGAIN</td>
</tr>
</table>

Decode
12-02-2008, 03:28 PM
Add cellpadding="0" and cellspacing="0" to the <tr> tag

chrisgocrazyH
12-02-2008, 09:08 PM
<table><td cellpadding="0" and cellspacing="0">HI</td></table>


<table><td cellpadding="0" and cellspacing="0">HI AGAIN</td></table>

-- should work..

Hypertext
12-02-2008, 10:31 PM
Don't see why you would need this, tables are for tabular data. For what I'm guessing your using for you should use divs.

Want to hide these adverts? Register an account for free!