I have a readonly textarea. But the text displayed in the textarea is centered. Is there a way to display it left justified?
Try <textarea style="text-align: left"></textarea>
Thanks for your reply.
I have modified the codes as shown below. But still it does not work. Any idea?
<textarea id="xxx" name="xxx"
rows="3" cols="220" style="text-align: left">
The textarea tag contains an attribute dojoType. Are you using dojo?
Is the page accessible from the web?
No, it is not accessible from the web.
Would it be possible to post the html or reduce the html to something simpler that still exhibits the problem?
Hang on, the simple text area from dojo is supposed to be centered.
What is the centered part that is causing you trouble?
Is your trouble with the text area frame being centered on the screen, or is it with the text inside the frame being centered?
It turns out that it was not really the centering problem. There were spaces between the right bracket of <textarea> and the text I want to display because I had it in the next line. I moved up the text to display right next to the right bracket of <textarea> and leading spaces disappeared.