I am currently trying to justify text in a textarea, unfortunately the CSS:
text-align: justify;
Doesn't work on the text like center, left and right do. I've tried this in both Firefox 3 and IE 7 with no luck.
Is there any way around this?
I am currently trying to justify text in a textarea, unfortunately the CSS:
text-align: justify;
Doesn't work on the text like center, left and right do. I've tried this in both Firefox 3 and IE 7 with no luck.
Is there any way around this?
I believe that common practice is to use the TEXTAREA
for input without worying about justification; and then, once the input is processed (i.e. the FORM
is submitted, or an event of the TEXTAREA
is captured), the contents are displayed in a non-editable text element (such as P
, SPAN
, TD
) where the text-align: justify;
style attribute will be honored.
i dont think this is possible in the html textarea element. you might be able to use some sort of wysiwyg editor (editable div). ie. fckeditor