Page 1 of 1

Textareas and Mozilla

Posted: Tue Apr 13, 2004 2:53 am
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.

Posted: Wed Apr 14, 2004 8:14 am
by phait
hi,
have you tried "virtual" or just omitting the attribute?

Posted: Wed Apr 14, 2004 6:50 pm
by Paddy
Yep, I have tried both of those.

Posted: Thu Apr 15, 2004 7:02 am
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...

Posted: Thu Apr 15, 2004 5:46 pm
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.

Posted: Thu Apr 15, 2004 7:40 pm
by Pyrite
I have the same problem, XHTML 1.0 with Mozilla Firefox on WinXP . Haven't found a solution either.

XHTML

Posted: Fri Apr 16, 2004 8:50 am
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

Posted: Fri Apr 16, 2004 8:51 am
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.