HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Display no borders on empty cells in a table
The empty-cells
property sets whether or not to display borders on empty cells in a table.
Default value: | show |
---|---|
Inherited: | yes |
Animatable: | no. Read about animatable |
Version: | CSS2 |
JavaScript syntax: | object.style.emptyCells="hide" Try it |
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
empty-cells | 1.0 | 8.0 | 1.0 | 1.2 | 4.0 |
Value | Description | Demo |
---|---|---|
show | Display borders on empty cells. This is default | Demo ❯ |
hide | Hide borders on empty cells | Demo ❯ |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
CSS tutorial: CSS Table
HTML DOM reference: emptyCells property