ASP.NET CellSpacingProperty
Table Control
Definition and Usage
The CellSpacing property is used to get or set the spacing between cells in a table (in pixels).
Note:This property is invalid in FireFox.
Syntax
<asp:Table CellSpacing="px" runat="server">
Some Content
</asp:Table>
Some Content
</asp:Table>
| Property | Description |
|---|---|
| px | Specifies the spacing between cells (in pixels). |
Example
The following example sets the CellSpacing property of the Table control:
<form runat="server">
<asp:Table id="tab1" runat="server"
CellSpacing="20">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
<asp:Table id="tab1" runat="server"
CellSpacing="20">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
Demo Example »
Table Control Other Extensions