Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   justify form textarea (http://www.greenguysboard.com/board/showthread.php?t=14161)

Dylan 2004-12-10 09:25 PM

justify form textarea
 
How?

It's puzzling me |knockout|

Dylan 2004-12-10 11:42 PM

Just to clarify, you know what
p align = justify
does right ?

Well, I want to do that to the text in a textarea

venturi 2004-12-11 05:59 PM

Give this a try, not sure if it will work though...

Code:



Dylan 2004-12-11 08:17 PM

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.

Entreri 2004-12-28 08:30 PM

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.

Porn Meister 2004-12-29 12:38 AM

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..?

miracle 2004-12-30 02:25 PM

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

GeorgeTH 2005-01-08 09:37 PM

Quote:

Originally posted by miracle
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

According Miracle's link the simple solution Venturi proposed should work... |waves|

GeorgeTH 2005-01-15 09:02 PM

Quote:

Originally posted by GeorgeTH
According Miracle's link the simple solution Venturi proposed should work... |waves|
Quote myself - LOL! Now to the practical experience: according to the new gallery I made yesterday it doesn't work! At least I didn't get it to work... (it's the first time I'm using a textarea on a gallery).


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