HTML <table> cellpadding attribute
HTML <table> tag
Example
The following example sets the space between the cell wall and the cell
content to ten
pixels:
<table border="1"
cellpadding="10">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table> |
Try it yourself!
|
Definition and Usage
The cellpadding attribute specifies the space between the cell wall and the
cell content.
Note: Do not confuse this with the cellspacing attribute, which
specifies the space between cells.
For practical reasons, it may be better not to specify cellpadding, and use CSS
to apply padding
instead.
Browser Support

The cellpadding attribute is supported in all major browsers.
Syntax
<table cellpadding="value">
|
Attribute Values
Value |
Description |
pixels |
The space between the cell wall and the cell content |
HTML <table> tag
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|