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,627 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,620 Views)