padding-collapse

If collapsing is enabled, the padding of two adjacent cells are merged if the cells are not divided by a separator line. The padding of cells on the table’s border is halfed, if there are no border lines to create an even distribution of space among cells.

Availability

Available in: Table

Type

Boolean

Available values

Value Description
yes Paddings are collapsed. Default.
no Paddings are not collapsed.

Default value

yes

Inherited

Yes.

Example

// Collapse is deactivated. Cells will have an exact padding of 10pt.
table {
  padding-collapse:     no
  padding: 10pt
}

// Collapse is deactivated. Paddings are collapsed between cells, so each cell has a 5pt padding.
table {
  padding-collapse:     yes
  padding: 10pt
}