cellpadding - Cell Padding

Specifies the space between a table cell border and its content in pixels.

Category

format

Syntax

cellpadding="n"

Usage

In Design mode, click All Properties and look for cellpadding under format.

By default a control group has no border (border="0").

Examples

This Table control specifies cell spacing and padding.
<xp:table cellspacing="16" cellpadding="16">
	<xp:tr>
		<xp:td>
			<xp:label id="label1" value="row 1, column 1"></xp:label>
		</xp:td>
		<xp:td>
			<xp:label value="row 1, column 2" id="label3"></xp:label>
		</xp:td>
	</xp:tr>
	<xp:tr>
		<xp:td>
			<xp:label value="row 2, column 1" id="label2"></xp:label>
		</xp:td>
		<xp:td>
			<xp:label value="row 2, column 2" id="label4"></xp:label>
		</xp:td>
	</xp:tr>
</xp:table>