How to remove margin at top of table?
- by George Edison
I have the following HTML:
<div></div>
<table>
<tr><td>Test</td></tr>
</table>
...and the following CSS:
div {
/* nothing yet */
}
table {
margin: 0px;
border-collapse: collapse;
padding: 0px;
}
No matter what I do, there is still a gap between the table and the DIV. This occurs on Google Chrome 5.0.375.70 beta on Linux. (And it seems to occur on other Webkit-based browsers too.)
How can I get rid of the space?