ASP.NET CellPadding Property

Definition and Usage

The CellPadding property is used to set the space between the calendar cell border and its content.

Syntax

<asp:Calendar CellPadding="pixels" runat="server" />
Property Description
pixels Specifies the space between the calendar unit content and its border, in pixels.

Example

The following example shows a calendar with CellPadding set to 15:

<form runat="server">
<asp:Calendar id="cal1" runat="server"> CellPadding="15" /> 
</form>

Example

Set the CellPadding of the Calendar Control