How to remove margin at top of table?
Posted
by George Edison
on Stack Overflow
See other posts from Stack Overflow
or by George Edison
Published on 2010-06-16T04:46:01Z
Indexed on
2010/06/16
4:52 UTC
Read the original article
Hit count: 214
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?
© Stack Overflow or respective owner