Easy Tutorial
❮ Pr Border Left Css3 Pr Justify Content ❯

CSS empty-cells Property

Example

Hide borders and background of empty cells in a table:


Property Definition and Usage

The empty-cells property sets whether to show or hide borders and backgrounds of empty cells in a table (only used in "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 if a !DOCTYPE is specified.


Property Values

Value Description
hide Do not draw borders around empty cells.
show Draw borders 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 Border Left Css3 Pr Justify Content ❯