padding

The padding between a cell’s border and its contents. To set the padding of a specific side use side-specific setings suchs as padding-top, padding-left etc.. Paddings are usually collapsed with paddings of adjacent cells, if there is no separator between the cells and no border around the table. To force full-size paddings, set [padding-collapse][padding-collapse] to no.

Variants

Setting Name Default value Description
padding-top 2pt Top padding of the cell.
padding-left 2pt Left padding of the cell.
padding-bottom 2pt Bottom padding of the cell.
padding-right 2pt Right padding of the cell.

Availability

Available in: Table Cell, Table

Type

Length

Default value

2pt

Inherited

No.

Example

// There is always a padding around the cells contents
table-cell {
   padding:        10pt
}