beginner12 — 2010-01-22T11:14:15-05:00 — #1
I have a readonly textarea. But the text displayed in the textarea is centered. Is there a way to display it left justified?
philiptoop — 2010-01-22T11:48:34-05:00 — #2
Try <textarea style="text-align: left"></textarea>
beginner12 — 2010-01-22T12:09:15-05:00 — #3
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">
philiptoop — 2010-01-22T13:06:48-05:00 — #4
The textarea tag contains an attribute dojoType. Are you using dojo?
Is the page accessible from the web?
beginner12 — 2010-01-22T13:22:04-05:00 — #5
No, it is not accessible from the web.
philiptoop — 2010-01-22T16:24:05-05:00 — #6
Would it be possible to post the html or reduce the html to something simpler that still exhibits the problem?
paul_wilkins — 2010-01-22T17:19:51-05:00 — #7
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?
beginner12 — 2010-02-11T12:45:15-05:00 — #8
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.