empty-cells

The empty-cells property controls the rendering of borders and backgrounds around cells that have no visible content.

CSS2

Syntax

empty-cells: show | hide | inherit
Initial: show
Applies To: table-cell elements
Inherited: yes
Percentages: NA
Media: visual

Values

empty-cells: value
Value Description
hide Borders and backgrounds are not drawn
show Borders and backgrounds are drawn

DOM

[window.]document.getElementById("element-id").style.emptyCells = "empty-cells";

Example | hide

Example | show

Example | DOM

External

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification