CSS Property: empty-cells
Whether borders and backgrounds of empty table cells should be shown or not.
Applies to boxes set to display: table-cell (of which td and th HTML elements are by default).
empty-cells will have no effect if border-collapse is set to collapse.
Possible Values
| Value | Description |
|---|---|
hide | Empty cell borders and backgrounds are not rendered. |
show | Empty cell borders and backgrounds are rendered. Default. |
inherit | |
initial | |
unset | |
Example
td { empty-cells: hide; }
