cellPadding attribute (table)
Specifies the amount of space between the border of a cell and its contents in a table.
Use the cellSpacing attribute if you want to set the space between cells.
Sets the amount of space between the border of the cell and its contents.
One of the following values:
|Integer with or without a px (pixel) designator.|
|Integer higher than or equal to 0 , with a % designator.|
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the cellPadding attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments