Latest web development tutorials

ASP.NET CheckBox TextAlign property

Checkbox control CheckBox control

Definition and Usage

TextAlign property sets or returns the alignment CheckBox text.

The default alignment is "right".

grammar

<asp:CheckBox TextAlign="left|right" runat="server" />


Examples

The following example sets the alignment of the CheckBox text:

<form runat="server">
<asp:CheckBox id="check1" runat="server"
Text="Make it so" TextAlign="left" />
</form>

The demonstration >>

Checkbox control CheckBox control