How to remove default padding from html table cell to look like ?
I use html table in my page to display contents like;
<table cellpadding="0" cellspacing="0">
<tr>
<td>Test1</td>
<td>Test2</td>
<td>Test3</td>
<td>Test4</td>
</tr>
</table>
where the <body> and <td> have their margin and padding set to 0. There is
no specific height for <td>. The expected output was like the borders
stick to the text. But there is a little gap between text and border.
Here is the demo
How can I make the cells stick with the text? The font size may vary.
No comments:
Post a Comment