ASP.NET CellPadding Property
Definition and Usage
The CellPadding property is used to set or return the pixel number between the cell border and the content.
Note:This function is only valid when the RepeatLayout property is set to "Table".
Syntax
<asp:RadioButtonList CellPadding="pixels" runat="server"> some content </asp:RadioButtonList >
Property | Description |
---|---|
pixels | Specify the pixel number between the cell border and the content. |
Example
The following example sets the CellPadding property of the RadioButtonList control:
<form runat="server"> <asp:RadioButtonList id="rb1" runat="server" CellPadding="15"> Some content </asp:RadioButtonList> </form>
Example
- Set the CellPadding Property of RadioButtonList Control