PDA

View Full Version : justify form textarea


Dylan
2004-12-10, 10:25 PM
How?

It's puzzling me |knockout|

Dylan
2004-12-11, 12:42 AM
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, 06:59 PM
Give this a try, not sure if it will work though...


<textarea style='text-align:justify;' rows='#' cols='#'>stuff in text area</textarea>

Dylan
2004-12-11, 09: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, 09: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, 01: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, 03: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, 10:37 PM
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, 10:02 PM
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).