I noticed that when rendering tables without borders, in between table cells there is a hairline trace of whatever the background color of the table is. Nothing seems to work to get rid of it: setting borders to none, collapsing borders, setting cell-spacing to 0, etc.
The only workaround I was able to find was setting all borders to 1px, and then setting them to the same color as the cell background so that it just looks like there aren't any borders. Attached is a screenshot showing what I mean, note the hairline gray lines in between cells, which are showing because the background-color on the table is set to black.
Here is a code snippet that shows the issue:
The only workaround I was able to find was setting all borders to 1px, and then setting them to the same color as the cell background so that it just looks like there aren't any borders. Attached is a screenshot showing what I mean, note the hairline gray lines in between cells, which are showing because the background-color on the table is set to black.
Here is a code snippet that shows the issue:
<html>
<head>
<style>
table {
background-color: black;
border: none;
border-collapse: collapse;
}
td { background-color: white; }
</style>
</head>
<body>
<table>
<tr><td>-</td><td>-</td></tr>
<tr><td>--</td><td>--</td></tr>
</table>
</body>
</html>
Edited by Alex3917