Setting the alignment of the textbox in asp.net

How can I align the text in the texbox...right align or left align

Thanks,
wilkersonsAsked:
Who is Participating?
 
shovavnikConnect With a Mentor Commented:
Is this for numbers or for multi-lingual use?

You can set the style attribute in any case:

For numbers, or the like:
<asp:TextBox runat="server" id="MyTB" style="text-align:left;"></asp:TextBox>

For multi-directional use (bi-directional):
<asp:TextBox runat="server" id="MyTB" style="text-align:left;direction:ltr;"></asp:TextBox>
0
 
AerosSagaCommented:
put it in a <p>
<P align="right"><asp:Image id="Image1" runat="server"></asp:Image></P>

Regards,

Aeros
0
 
AerosSagaCommented:
You could also use a <td> or a <tr>
0
 
wilkersonsAuthor Commented:

style="text-align:left;"
That is what I was looking for..
Many thanks to Aeros and shovavnik.
0
All Courses

From novice to tech pro — start learning today.