Textareas and Mozilla

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Paddy
Forum Contributor
Posts: 244
Joined: Wed Jun 11, 2003 8:16 pm
Location: Hobart, Tas, Aussie
Contact:

Textareas and Mozilla

Post by Paddy »

I can't find a solution to this anywhere and it is really starting to give me the poos.

My problem is that I can't get a textarea to word wrap in Mozilla. I have used wrap="soft" but that didn't fix it. Works perfect in IE.

Any ideas would be really, really appreciated.
phait
Forum Commoner
Posts: 46
Joined: Wed Apr 07, 2004 4:41 am
Location: watford / leicester, UK

Post by phait »

hi,
have you tried "virtual" or just omitting the attribute?
Paddy
Forum Contributor
Posts: 244
Joined: Wed Jun 11, 2003 8:16 pm
Location: Hobart, Tas, Aussie
Contact:

Post by Paddy »

Yep, I have tried both of those.
phait
Forum Commoner
Posts: 46
Joined: Wed Apr 07, 2004 4:41 am
Location: watford / leicester, UK

Post by phait »

hmm, according to the spec, 'wrap' is not a valid attribute.
http://www.w3.org/TR/REC-html40/interac ... tml#h-17.7

What version of html are you doing it for?
Could you post the code / form that causes the problem...
Paddy
Forum Contributor
Posts: 244
Joined: Wed Jun 11, 2003 8:16 pm
Location: Hobart, Tas, Aussie
Contact:

Post by Paddy »

XHTML 1.0

<textarea name="information" rows="7" cols="42">

Is basically it. I am thinking it is a problem with Mozilla and can't be fixed.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

I have the same problem, XHTML 1.0 with Mozilla Firefox on WinXP . Haven't found a solution either.
Black Unicorn
Forum Commoner
Posts: 48
Joined: Mon Jun 16, 2003 9:19 am
Location: United Kingdom

XHTML

Post by Black Unicorn »

In XHTML, I think attributes dealing with style are not allowed anymore, such as the wrap attribute. This even counts for things such as <td width=" ... "> etc.

Even though it will almost always work with IE. I seriously recommend people testing their XHTML to use Netscape or Mozilla.

Best wishes, H
Last edited by Black Unicorn on Fri Apr 16, 2004 8:57 am, edited 1 time in total.
Black Unicorn
Forum Commoner
Posts: 48
Joined: Mon Jun 16, 2003 9:19 am
Location: United Kingdom

Post by Black Unicorn »

If the content of the textarea does not contain spaces (which it would use for line breaks), I couldn't find a solution, either.
But try to use CSS overflow property, i.e.:

<style>
textarea{
overflow:auto
}
</style>

Hope this helps some.
Post Reply