| Syntax | selector {empty-cells: value;}
|
|---|---|
| Usage | The empty-cells property is used with tables to control whether the border and background for empty cells should be displayed. This property applies to tables that have a border-collapse property value of separate. This property is specified by using a keyword according to the syntax shown above. CSS Example: The empty-cells properties are set to show and hide. #tst1 {empty-cells: show;}
#tst2 {empty-cells: hide;}
th, td {border: thin solid;
background-color: yellow;
}
table {display: table;
border-collapse: separate;
border-spacing: 5px;
background-color: lime;
border: thin solid;
width: 400px;
margin: 10px;
}![]() ![]() ![]() |
| Keywords |
|
| Applies To | Elements that have a display property value of table-cell. |
| Inherited | Yes |
| Initial Value | show |
![]() ![]() The empty-cells properties are set to show and hide. |