Properties
CSS
empty-cells
The empty-cells property controls the rendering of borders and backgrounds around cells that have no visible content.
CSS2
empty-cells: show | hide | inherit
| Initial: | show |
| Applies To: | table-cell elements |
| Inherited: | yes |
| Percentages: | NA |
| Media: | visual |
Note: Doctype is required for Internet Explorer 8+
Values
empty-cells: value;
| Value: | Description: |
| hide | Borders and backgrounds are not drawn |
| inherit | Takes the same computed value as the property for the element's parent |
| show | Borders and backgrounds are drawn |
DOM
[window.]document.getElementById("element-id").style.emptyCells = "empty-cells";
