When you uses HTML to construct a table in a blogers , you often finds that there are large white spaces above the table, like a below:
row 1, cell 1 | row 1, cell 2 |
row 2, cell 1 | row 2, cell 2 |
See how far that table from the existing posting.How to avoid large white space above tables when you make a posting? Follow this guides lines: you just write the HTML code for the table in one single line, without pressing the ENTER key.
The exisiting codes is like this :
<table border="1">
<tbody>
<tr>
<td>row 1, column 1</td>
<td>row 1, column 2</td>
</tr>
<tr>
<td>row 2, column 1</td>
<td>row 2, column 2</td>
</tr>
</tbody>
</table>
Changes the HTML look like this (Typing the HTML for the table in a single line, without line breaks(Typing the HTML for the table in a single line, without line breaks):
<table border="1"><tbody><tr><td>row 1, column 1</td><td>row 1, column 2</td></tr><tr><td>row 2, column 1</td><td>row 2, column 2</td></tr></tbody></table>
Now you see my table just to closed with my posting......
The exisiting codes is like this :
<table border="1">
<tbody>
<tr>
<td>row 1, column 1</td>
<td>row 1, column 2</td>
</tr>
<tr>
<td>row 2, column 1</td>
<td>row 2, column 2</td>
</tr>
</tbody>
</table>
Changes the HTML look like this (Typing the HTML for the table in a single line, without line breaks(Typing the HTML for the table in a single line, without line breaks):
<table border="1"><tbody><tr><td>row 1, column 1</td><td>row 1, column 2</td></tr><tr><td>row 2, column 1</td><td>row 2, column 2</td></tr></tbody></table>
Now you see my table just to closed with my posting......
row 1, cell 1 | row 1, cell 2 |
row 2, cell 1 | row 2, cell 2 |
No comments:
Post a Comment