Click to See Complete Forum and Search --> : Right Justify a Textbox Server Control


rayc123
May 6th, 2003, 02:10 PM
How does one Right Justify text in a TextBox Server Control? The control is reading data from a datatable but it always displays left-justified.

Thanks in advance

Ray

giladasaf
May 7th, 2003, 09:24 AM
I'm not sure what you are trying to do but if you what your textbox, labels etc. to be with right to left alignment, you should
set the dir paramether to rtl instead of ltr.

vs.net has this parameter in the winform parameters.
it sets it in the html tag.

I prefer to see it in the form tag.

If you want different alignment for each textbox - I don't know how to do that - someone suggested to try css but I didn't try it yet.

Good luck