empty-cellsNN 6 IE n/a CSS 2

Inherited: Yes

Controls whether an empty td element shows its borders and background in a table. Surrounding cells don't change position when an empty cell is hidden. Instead, the cell is essentially transparent, allowing the table's background to show through in the space.

 
CSS Syntax
 
empty-cells: show | hide
 
Value

One of two constants: show | hide .

 
Initial Value

The CSS specification calls for a default value of show, but Netscape 6 renders as if the default is hide when running in quirks mode (i.e., specifying older DTDs in the DOCTYPE element).

 
Example
 
td {border: salmon inset 3px; empty-cells: hide}
 
Applies To

td elements.