|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Mozilla texarea
Hello!
It's good to be the first to post (after Matt, of course So, the problem is simple and small: the '<textarea>' element. In MSIE there is an attribute 'wrap' which controls the line-wrapping. The W3C standard lacks the analogue. And the question is: does Mozilla stick to the standards so completely, or there is a way to turn off the line-wrapping inside the '<textarea>'? Thanks in advance, any feedback would be greatly appreciated. P.S. And thanks to Matt for creating this forum (This message was feeling really uncomfortable in the PHP Coding area) |
|
#2
|
|||
|
|||
|
RE: Mozilla texarea
Hmmm..with my Mozilla this:
<textarea cols=20 rows=10></textarea> does not wrap text...maybe I am misunderstanding something? |
|
#3
|
|||
|
|||
|
RE: Mozilla texarea
Well I've already done a little bit of investigation on the subject. So what I've found out:
if you do not set the attributes defining width of the textarea (cols="20", style="width: 100px") Mozilla will not wrap. But as soon as it sees the above mentioned attributes, it starts wrapping) (I'm currently using Mozilla 1.1 alpha. So, the following textarea will have no line wraps: <textarea rows="10">funny things happen very very very very often</textarea> And these two will wrap the line: <textarea cols="20" rows="10">funny things happen very very very very often</textarea> <textarea style="width: 100px" rows="10">funny things happen very very very very often</textarea> So it looks like I'm unlucky, cause I do need to set the textarea width and to stick to Mozilla. Thanks for your support, Matt. I do appreciate it. |
|
#4
|
|||
|
|||
|
RE: Mozilla texarea
Hmm..been playing with it a bit in Mozilla and yes, it is very flaky....dunno what to say about that....just hope they get it sorted out...
|
|
#5
|
|||
|
|||
|
Re: Mozilla textarea
Solved!
It was too easy, I should have guessed earlier. All I had to do was to set up an external style for the textarea specifying its width. So the following code works nicely: Code:
<style type="text/css">
textarea.edit {
width: 150px;
}
</style>
<textarea class="edit" rows="8">funny things happen very very very very often</textarea>
Thanks for the assistance |
|
#6
|
|||
|
|||
|
RE: Mozilla texarea
If you type a word (of course, with no space) that is longer than the width of the textarea, the line will not wrap and horizontal scrollbar appears.
<textarea class="edit" rows="8">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</textarea> |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Mozilla texarea |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|