ASP.NET CellPadding Property

Definition and Usage

The CellPadding property is used to set or return the pixel number between the border of the table cell and the content.

Note:This function is only valid when RepeatLayout is set to "Table".

Syntax

<asp:CheckBoxList CellPadding="pixels" runat="server">
some content
</asp:CheckBoxList>
Property Description
pixels Specifies the pixel number between the border of the table cell and the content.

Example

The following example sets the CellPadding property of the CheckBoxList control:

<form runat="server">
<asp:CheckBoxList id="rb1" runat="server"> CellPadding="15">
Some content
</asp:CheckBoxList>
</form>

Example

Set the CellPadding of CheckBoxList Control