Easy Tutorial
❮ Dom Obj Pushbutton Event Ondragend ❯

Table cellPadding Attribute


Definition and Usage

The cellpadding attribute specifies the space between the cell edges and their contents.

Syntax

Setting the cellPadding attribute:

Returning the cellPadding attribute:

Note: The cellPadding attribute has no default value.

Value Description
number Sets the space between the cell edges and their contents in pixels
percent Sets the space between the cell edges and their contents in percentage

Browser Support

All major browsers support the cellPadding attribute.


Example

Change the space between table cells and the space between cell edges and their contents:


❮ Dom Obj Pushbutton Event Ondragend ❯