Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where is my formatting capability?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00907634
Message ID:
00907870
Vues:
6
>Someone please tell me that it is possible to center align labels and textboxes in ASP.NET.
>
>I can't seem to find the easy way to center align a label or textbox. I don't mean formatting or alignment of multiple selections of controls to align centers etc. I want a label that will be centered in the same position no matter how long the text string. I would think a label would have an align property you can set to center, left or right.

In code you can do:

this.MyTextBox.Style.Add("text-align","center");

In the html I think you can do something like:

text-align="center"

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform