Style empty Cells Property

Style empty Cells Property


Style empty cells property
It sets whether borders and backgrounds appear around cells that have no visible content. It is used with tables to control whether the border and background for empty cells should be displayed.
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
 
property
 
chrome
 
firefox
 
microsoft edge
 
Opera
 
empty cells
 
yes
 
yes
 
yes
 
Yes
 
Syntax
Return the empty cells property:
object.style.emptycells
Set the empty cells property:
object.style.emptycells="show|hide|initial|inherit
Example
Output
 
Click the button to "hide" or "show" empty table-cells:
 
Property Values
 
Value
 
Description
 
show
 
Border and background are shown in empty cells. This is the default.
 
hide
 
Border and background are hidden in empty cells.
 
initial
 
Set this property to its default value.
 
inherit
 
Inherits this property from its parent element.

 
Technical Details
 
Default value:
 
show
 
Version:
 
CSS2
 
Return value:
 
A string, representing the border and background of empty cells.