Name

cellPadding — NN n/a IE 4 DOM 1

Synopsis

Read/Write

The amount of empty space between the border of a table cell and the content of the cell. Note that this property applies to space inside a cell. Minor adjustments to this property are not as noticeable when the table does not also display borders (in which case the cellSpacing property can assist in adjusting the space between cells).

Example

document.all.myTable.cellPadding = "15"

Value

A string value for a length in a variety of units or percentage.

Default

0

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.