PDA

View Full Version : HTML Table: Big Empty Space


babubangla
March 16, 2005, 03:20 PM
Whenever I try to put table in a thread with HTML, the table comes out nice, but it creates a big big empty space in the message just on top of the table. Is there any way to avoid this?

babubangla
March 16, 2005, 03:25 PM
Please see next message below for an example

babubangla
March 16, 2005, 03:26 PM
<table width="60%" border="1">
<tr>
<td width="33%">Column-01, Row-01</td>
<td width="30%">Addrerss</td>
<td width="37%">Comment</td>
</tr>
<tr>
<td width="33%">Column-02, Row-02</td>
<td width="30%">Column-02, Row-02</td>
<td width="37%">Column-02, Row-02</td>
</tr>
<tr>
<td width="33%">Column-03, Row-03</td>
<td width="30%">Column-02, Row-02</td>
<td width="37%">Column-02, Row-02</td>
</tr>
<tr>
<td width="33%">Column-04, Row-02</td>
<td width="30%">Column-02, Row-02</td>
<td width="37%">Column-02, Row-02</td>
</tr>
<tr>
<td width="33%">Column-01, Row-02</td>
<td width="30%">Column-02, Row-02</td>
<td width="37%">Column-02, Row-02</td>
</tr>
<tr>
<td width="33%">Column-01, Row-02</td>
<td width="30%">Column-02, Row-02</td>
<td width="37%">Column-02, Row-02</td>
</tr>
<tr>
<td width="33%">Column-01, Row-02</td>
<td width="30%">Column-02, Row-02</td>
<td width="37%">Column-02, Row-02</td>
</tr>
<tr>
<td width="33%">Column-01, Row-02</td>
<td width="30%">Column-02, Row-02</td>
<td width="37%">Column-02, Row-02</td>
</tr>
<tr>
<td width="33%">Column-01, Row-02</td>
<td width="30%">Column-02, Row-02</td>
<td width="37%" bordercolor="#FFFFCC">Column-02, Row-02</td>
</tr>
</table>

AsifTheManRahman
March 16, 2005, 03:33 PM
hmm...weird...i had a look at your code and tried it on my browser. worked out fine. am i missing something? :-/ can you post the source code?

Mahmood
March 16, 2005, 03:58 PM
<table width="60%" border="1"><tr><td width="33%">Column-01, Row-01</td><td width="30%">Addrerss</td><td width="37%">Comment</td></tr><tr><td width="33%">Column-02, Row-02</td><td width="30%">Column-02, Row-02</td><td width="37%">Column-02, Row-02</td></tr><tr><td width="33%">Column-03, Row-03</td><td width="30%">Column-02, Row-02</td><td width="37%">Column-02, Row-02</td></tr><tr><td width="33%">Column-04, Row-02</td><td width="30%">Column-02, Row-02</td><td width="37%">Column-02, Row-02</td></tr><tr><td width="33%">Column-01, Row-02</td><td width="30%">Column-02, Row-02</td><td width="37%">Column-02, Row-02</td></tr><tr><td width="33%">Column-01, Row-02</td><td width="30%">Column-02, Row-02</td><td width="37%">Column-02, Row-02</td></tr><tr><td width="33%">Column-01, Row-02</td><td width="30%">Column-02, Row-02</td><td width="37%">Column-02, Row-02</td></tr><tr><td width="33%">Column-01, Row-02</td><td width="30%">Column-02, Row-02</td><td width="37%">Column-02, Row-02</td></tr><tr><td width="33%">Column-01, Row-02</td><td width="30%">Column-02, Row-02</td><td width="37%" bordercolor="#FFFFCC">Column-02, Row-02</td></tr></table>

Mahmood
March 16, 2005, 03:59 PM
The new lines were creating the problem. I made them all in one line and works. Click on edit to see my code.

babubangla
March 16, 2005, 06:28 PM
Just another try:
<table border="1">
<tr>
<th>Heading</th>
<th>Another Heading</th>
</tr>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>

babubangla
March 16, 2005, 06:29 PM
Now another try with Rajputra Approach:

<table border="1"><tr><th>Heading</th><th>Another Heading</th></tr><tr><td>row 1, cell 1</td><td>row 1, cell 2</td></tr><tr><td>row 2, cell 1</td><td>row 2, cell 2</td></tr></table>

babubangla
March 16, 2005, 06:30 PM
It works !!!!!!!
Thanks a lot Rajputra.