From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

how to align asp fields if needed?

Hi, I am trying to align or "justify center" my webforms text fields
and labels. I see no property that addresses this. Am I just not seeing
it?
I see the style property, i.e. ...
txtRCP.style. (add, clear, count, gettype, item, keys and remove) but
nothing about aligning. Any help?


Thank you, Monty


0 Kudos
Message 1 of 2
(3,626 Views)

You can do this via the CSS text-align attribute. For example:

<asp:Label
    runat="server"
    ID="label"
    Text="Test"
    Width="300px"
    BorderStyle="Solid"
    style="text-align:right;"
/>

- Elton

0 Kudos
Message 2 of 2
(3,619 Views)