Left justify in readonly textarea

I have a readonly textarea. But the text displayed in the textarea is centered. Is there a way to display it left justified?

Thanks

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?

<td>
<textarea id=“xxx” name=“xxx”
dojoType=“dijit.form.SimpleTextarea”
maxLength=“2000” readOnly=“True”
rows=“3” cols=“220” style=“text-align: left”>
${form.abc}
</textarea>
</td>

The textarea tag contains an attribute dojoType. Are you using dojo?

I’m afraid I’m not familiar with that javascript framework but it could be that the attribute is getting set after the page has loaded.

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.
http://docs.dojocampus.org/dijit/form/SimpleTextarea

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.

Thanks