Easy Tutorial
❮ Pr Pos Left Css3 Pr Column Span ❯

CSS empty-cells Property

Example

Hide borders and background of empty cells in a table:


Property Definition and Usage

The empty-cells property specifies whether or not to display borders and background on empty cells in a table (only for "separated borders" mode).

Default value: show
Inherited: yes
--- ---
Version: CSS2
--- ---
JavaScript syntax: object.style.emptyCells="hide"
--- ---

Browser Support

All major browsers support the empty-cells property.

Note: The empty-cells property is only supported in IE8 when a !DOCTYPE is specified.


Property Values

Value Description
hide No border is drawn around empty cells.
show Borders are drawn around empty cells. Default.
inherit Specifies that the value of the empty-cells property should be inherited from the parent element.

Related Articles

CSS Tutorial: CSS Table

❮ Pr Pos Left Css3 Pr Column Span ❯