ASP.NET CaptionAlign Property
Definition and Usage
The CaptionAlign property is used to set or return the alignment of the title text for the table.
Syntax
<asp:Table Caption="text" CaptionAlign="align" runat="server"> Some Content </asp:Table>
Property | Description |
---|---|
align |
Specify the alignment of the title text. Possible Values:
|
Example
The following example sets the title properties of the table and arranges them at the bottom of the Table control:
<form runat="server"> <asp:Table id="tab1" runat="server" Caption="Table Example" CaptionAlign="bottom"> <asp:TableRow> <asp:TableCell> Hello! </asp:TableCell> </asp:TableRow> </asp:Table> </form>
Example
- Set Caption Alignment for Table