CSS empty-cells Property
Complete CSS Reference
Example
Hide border and background on empty cells in a table:
table
{
border-collapse:separate;
empty-cells:hide;
} |
Try it yourself »
|
Definition and Usage
The empty-cells property sets whether or not to display borders and background on empty cells in a table (only for the "separated borders" model).
| Default value: |
show |
| Inherited: |
yes |
| Version: |
CSS2 |
| JavaScript syntax: |
object.style.emptyCells="hide" |
Browser Support

The empty-cells property is supported in all major browsers.
Note: Internet Explorer 8 (and higher) supports the empty-cells property if a !DOCTYPE
is specified.
Property Values
| Value |
Description |
| hide |
No background or borders are shown on empty cells |
| show |
Background and borders are shown on empty cells. This
is default |
| inherit |
Specifies that the value of the empty-cells property should be inherited
from the parent element |
Related Pages
CSS tutorial: CSS Table
HTML DOM reference: emptyCells property
Complete CSS Reference

Need an easy way to get data into XML, or transform XML to another format?
MapForce lets you map XML data to/from any combination of XML, database, flat file, Excel 2007, XBRL, or Web services data.
Then it transforms data instantly or auto-generates royalty-free data integration code for recurrent conversions.
New features in Version 2010!
Download a free, fully functional 30-day trial to experience the following features:
- Easy-to-use, graphical data mapping interface
- Instant data transformation
- XSLT 1.0/2.0 and XQuery code generation
- Java, C#, and C++ code generation
- Advanced data processing functions
- Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
- Visual Studio & Eclipse integration
Download a fully-functional trial today!
|
|
|
|