The
empty-cells
property determines if an empty cell is rendered with a border.
The possible values are
Properties | Description |
---|
show | to render an empty cell with a border |
hide | to render an empty cell without a border |
snippet
<html>
<head>
<style>
* {border: 1px solid #000000; padding: 10px; margin:2px;}
</style>
</head>
<body>
<table>
<tr><td>data 1</td><td>data 2</td><td>data 3</td></tr>
<tr><td>data 4</td><td>data 5</td><td>data 6</td></tr>
<tr><td>data 7</td><td>data 8</td><td>data 9</td></tr>
</table>
<table style="empty-cells:show;">
<tr><td>data 1</td><td>data 2</td><td>data 3</td></tr>
<tr><td>data 4</td><td>data 5</td><td>data 6</td></tr>
<tr><td>data 7</td><td>data 8</td><td>data 9</td></tr>
</table>
</body>
</html>