|
|
|
|
|
|
![]() |
#1 |
Lord help me, I'm just not that bright
Join Date: Feb 2004
Posts: 108
|
justify form textarea
How?
It's puzzling me ![]()
__________________
Dildo's Porn Links |
![]() |
![]() |
![]() |
#2 |
Lord help me, I'm just not that bright
Join Date: Feb 2004
Posts: 108
|
Just to clarify, you know what
p align = justify does right ? Well, I want to do that to the text in a textarea
__________________
Dildo's Porn Links |
![]() |
![]() |
![]() |
#3 |
No offence Apu, but when they were handing out religions you must have been out taking a whizz
|
Give this a try, not sure if it will work though...
Code:
<textarea style='text-align:justify;' rows='#' cols='#'>stuff in text area</textarea>
__________________
Please Re-Read The Rules For Sig Files |
![]() |
![]() |
![]() |
#4 |
Lord help me, I'm just not that bright
Join Date: Feb 2004
Posts: 108
|
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.
__________________
Dildo's Porn Links Last edited by Dylan; 2004-12-11 at 08:20 PM.. |
![]() |
![]() |
![]() |
#5 |
WHO IS FONZY!?! Don't they teach you anything at school?
Join Date: Feb 2004
Posts: 42
|
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. |
![]() |
![]() |
![]() |
#6 |
Asleep at the switch? I wasn't asleep, I was drunk
Join Date: Dec 2004
Posts: 214
|
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..? |
![]() |
![]() |
![]() |
#7 |
If something goes wrong at the plant, blame the guy who can't speak English
|
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
__________________
ThumbDaemons - Free TGP Script |
![]() |
![]() |
![]() |
#8 | |
Don't let a programmer design your front-end pages!
Join Date: Aug 2003
Location: currently on the road in CA
Posts: 781
|
Quote:
![]()
__________________
Have a nice day! ![]() |
|
![]() |
![]() |
![]() |
#9 | |
Don't let a programmer design your front-end pages!
Join Date: Aug 2003
Location: currently on the road in CA
Posts: 781
|
Quote:
__________________
Have a nice day! ![]() |
|
![]() |
![]() |
![]() |
|
|