ASP.NET CellPadding Property

Definition and Usage

The CellSpacing property is used to set the space between calendar cells.

Note: This property cannot be displayed correctly in the FireFox browser.

Syntax

<asp:Calendar CellPadding="pixels" runat="server" />
Property Description
pixels Specify the space between calendar cells in pixels.

Example

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

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

Example

Set the CellSpacing Property of the Calendar Control