Forum Moderators: not2easy
<table style="border: 5px solid red; margin: 0px; padding: 0px;">
<tr>
<td style="border: 5px solid green;
margin: 0px; padding: 0px;">Text</td>
</tr>
<tr>
<td style="border: 5px solid green;
margin: 0px; padding: 0px;">Text</td>
</tr>
</table>
What exactly is this space? The padding of the red table border? The margin of the green table cells?
I can make it "go away" with "border-collapse: collapse;" but that feels like a hack that would require extensive browser testing. Can someone help set me straight?
If you want the equivalent of cellspacing="1" or greater then you’d need to use a combination of border-collapse:separate and border-spacing:x, but that unfortunately doesn’t work in IE. Not an issue for your current problem though.