Latest web development tutorials

ASP.NET Table CellPadding property

Table Controls Table Controls

Definition and Usage

CellPadding property is used to get or set the cell border and the cell contents of spacing (in pixels).

grammar

<asp:Table CellPadding="px" runat="server">
Some Content
</asp:Table>
属性 描述
px 规定单元格边框与单元格内容的间距(以像素计)。


Examples

The following examples set CellPadding property Table control:

<form runat="server">
<asp:Table id="tab1" runat="server"
CellPadding="30">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

The demonstration >>

Table Controls Table Controls