Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Table CellPadding Property

ASP.NET CellPadding Property


Table control Table control


Definition and Usage

The CellPadding property is used to get or set the spacing (in pixels) between the cell border and the cell content.

Syntax

Some Content

 

property Description
px Specifies the spacing (in pixels) between the cell border and the cell content.

Example

The following example sets the CellPadding property of a Table control:

CellPadding="30">

asp:TableRow

asp:TableCell

Hello!

Demo Example »


Table control Table control