O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

empty-cells

Values:

show | hide

Initial value:

show

Applies to:

Elements with a display value of table-cell

Inherited:

Yes

Computed value:

Same as declared value

Description:

Defines the presentation of table cells that contain no content. If shown, the cell’s borders and background are drawn. This property is only honored if border-collapse is set to separate; otherwise, it is ignored.

Examples:

th, td {empty-cells: show;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required