Search within TutorialsPark

CSS empty-cells Property


To specify how borders are drawn on empty cells


Definition and Notes.

1. The CSS empty-cells property is used to determine how a browser should display a completely empty table-cell.

2. The value hide prevents any part of table cell to be visible.

.


Syntax:

CSS empty-cells property. internetexplorer safari firefox opera chrome

View in Splitscreen»

Code-Editor:

Note-Same effect can be achieved by setting the visibility property to hidden

Property Values

Value Description
show To Draw borders and background on every cell, even if it contains no content.
hide To prevent the display of an empty cells borders and background.
inherit The value is inherited from the parent element

Specifications

Specs Value
Name empty-cells
Value show | hide
Initial Value show
Applies to Elements with display value set as table-cell
Javascript syntax object.style.emptyCells="hide"
Inherited No
Computed Value Same as declared Value
Browser Support internetexplorer safari firefox opera chrome

Related Examples.