![]() |
justify form textarea
How?
It's puzzling me |knockout| |
Just to clarify, you know what
p align = justify does right ? Well, I want to do that to the text in a textarea |
Give this a try, not sure if it will work though...
Code:
|
After a bit of googling I found it can't be done using simple methods. One method I came across is the use of javax.swing.JTextPane |pissed|
I'm hoping there are easier methods I have not come across. |
I don't think it is feasible with a plain textarea. You may want to use a Javascript-based replacement for textarea (with all the possible browser issues it may bring).
Here's one that I found out (but didn't try). With it, it will allow the writer to justify the text amongst other things. http://www.codeproject.com/jscript/htmlArea.asp From there, perhaps you could search for a Javascript that strictly does justify formatting... You didn't specify why you needed that though - if it's from a GUI perspective, you might want to do your form in Flash, although I can't bear those. :) Entreri. |
Well.. considering that the old align=justify aligns to the left and right margins, I would say that venturi's method should work just fine. Just add the margin sizes also to the style tag..
Seems like it should be fine..? |
Not sure if justification can be done in a textarea. I know only of the wordwrap parameter. But you can have a look at microsoft's MSDN library at
http://msdn.microsoft.com/library/default.asp Click on the left menu: + Web Development ++ HTML and CSS +++ HTML and DHTML reference ++++ Objects +++++ textArea There you should find everything textarea tag supports. Hope that helps, Mark |
Quote:
|
Quote:
|
All times are GMT -4. The time now is 12:30 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc