473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

justify text in <textarea>?

does anyone know if its possible to full-justfy text in a <textarea>?
I can do left and right justify and center with a simple style declaration,
but can't find
any reference anywhere to a full justify as can be done in a regular <td>
for example.
Jul 21 '05 #1
4 14542
"Chamomile" <ne********@chamomile.co.uk> wrote:
does anyone know if its possible to full-justfy text in a
<textarea>?
It might be possible to achieve such perversions.
I can do left and right justify and center with a
simple style declaration,
but can't find
any reference anywhere to a full justify


On the

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 21 '05 #2
"Chamomile" <ne********@chamomile.co.uk> wrote:
does anyone know if its possible to full-justfy text in a <textarea>?
It might be possible to achieve such perversions.

By definition, <textarea> is an element for multi-line user input. What
could possibly justify the idea of justifying the input, and what would
this really mean (in the process of typing input)?
I can do left and right justify and center with a
simple style declaration, but can't find any reference anywhere to a
full justify


On the technical side, it's pretty simple: text-align: justify would do
if it were supported by browsers, but its implementation is confused,
buggy, and odd.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 21 '05 #3
"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in message
news:Xn*****************************@193.229.0.31. ..
"Chamomile" <ne********@chamomile.co.uk> wrote:
does anyone know if its possible to full-justfy text in a <textarea>?


It might be possible to achieve such perversions.

By definition, <textarea> is an element for multi-line user input. What
could possibly justify the idea of justifying the input, and what would
this really mean (in the process of typing input)?
I can do left and right justify and center with a
simple style declaration, but can't find any reference anywhere to a
full justify


On the technical side, it's pretty simple: text-align: justify would do
if it were supported by browsers, but its implementation is confused,
buggy, and odd.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

well, it's not exactly a perversion!
I'm trying to make things more comfortable for my users...
I take your point about typing in - justifying 'live' input might be a
process too far
although the <textarea> doesn't mind handling left , right or center
justification on the fly.

The problem has arisen trying to layout a page for web editing in an admin
<form>
as near to the actual (table) rendered public layout as possible.

The layout is stored in a backend database along with the data (text ,
pictures)
that can be updated from the <form> in question.
The 'public' layout allows formatting the text in left, right, center and
justified mode
so I would like to present the editable text to the admin user as closely as
possible to
the final look of the public page.

The 'text-align:justify' thing doesn't work unfortunately.
Any other ideas?

Jul 21 '05 #4
Tim
On Sat, 9 Jul 2005 09:14:42 +0000 (UTC),
"Chamomile" <ne********@chamomile.co.uk> posted:
well, it's not exactly a perversion!
I'm trying to make things more comfortable for my users...
How would be "more comfortable" for users if what they type into the box
changes as they go along? What you're suggesting is contrary to how every
other text area will work in every other page and browser.
The problem has arisen trying to layout a page for web editing in an admin
<form> as near to the actual (table) rendered public layout as possible.


There's no such thing as WYSIWYG in HTML. Attempting it will just mislead
people.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Augustus | last post by:
Hiya, I have a form with a <textarea></textarea> to receive user input. This input is then stored in a database and sent by fax... I need to be able to remove the carriage returns (enter...
2
by: Jonathan Taub | last post by:
This may seem a stupid question. I've got a <textarea> element: .... <td> List of items: <textarea> 1. Apple 2. Orange 3. Box
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
3
by: Jarek Mielcarek | last post by:
hi all, in xml file I have some fields which are source for <textarea> element. I'd like to transform this file using xslt and set the rows property of <textarea> depend of lines in some source...
8
by: ASP Yaboh | last post by:
I have an ArrayList of data gathered from a database. I want to create a web page from this data by creating a <table>, each cell in each row displays the appropriate data. One of those cells in...
2
by: Michael | last post by:
Question 1 ---------------- I am writing an advanced BBCode system for my forums and I would like to be able to find where the cursor was positioned last in the text so I could insert the BBCode...
6
by: Tony | last post by:
The w3schools HTML tag reference for <textarea> http://www.w3schools.com/tags/tag_textarea.asp says that the attributes 'cols' and 'rows' are REQUIRED attributes for the textarea tag. Looking at...
3
by: FunkHouse9 | last post by:
I'm working on a form to collect data in a textarea which and am trying to keep returns and spaces. I have a couple of functions that I Frankensteined together to replace returns with <br> and to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.