>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement