ASP.NET CaptionAlignProperty
Table Control
Definition and Usage
The CaptionAlign property is used to get or set the alignment of the caption text for a table.
Syntax
<asp:Table Caption="text" CaptionAlign="align" runat="server">
Some Content
</asp:Table>
Some Content
</asp:Table>
| Property | Description |
|---|---|
| align | Specifies the alignment of the caption text. Possible values:
|
Example
The following example sets the Caption property in the table and aligns it 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>
<asp:Table id="tab1" runat="server"
Caption="Table Example" CaptionAlign="bottom">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
Try it Yourself »
Table Control Other Extensions