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

ASP.NET Table CaptionAlign Property

ASP.NET CaptionAlign Property


Table control Table control


Definition and Usage

The CaptionAlign property is used to get or set the alignment of the caption text for the table.

Syntax

Some Content

 

property Description
align Specifies the alignment of the caption text.

Possible values:

  • NotSet - Default. No caption alignment is set.
  • Top - The caption is displayed at the top of the table. The text is centered.
  • Bottom - The caption is displayed at the bottom of the table. The text is centered.
  • Left - The caption is displayed at the top of the table. The text is left-aligned.
  • Right - The caption is displayed at the top of the table. The text is right-aligned.
  • |

    Example

    The following example sets the Caption property in the table and aligns it to the bottom of the Table control:

    Caption="Table Example" CaptionAlign="bottom">

    asp:TableRow

    asp:TableCell

    Hello!

    Demo Example »


    Table control Table control