Web4College

CSS empty-cells property

src

Description

CSS empty-cells property decides whether to show an empty cell or not.

Syntax

empty-cells : separate | collapse

Property values

showDefault

The table cell is visible even if there is no content within table cell.

empty-cells: show;
Try it

hide

The table cell is not visible when content is not present within table cell.

empty-cells: hide;
Try it

Applicable to

It applies to table element.